Mario Rodas 2023-11-23 04:20:00 +00:00
parent 1fb123914b
commit 6e269f0dff
2 changed files with 23 additions and 4 deletions

View File

@ -1,17 +1,21 @@
{ lib, buildNpmPackage, fetchFromGitHub }:
{ lib, buildNpmPackage, fetchFromGitHub}:
buildNpmPackage rec {
pname = "typescript";
version = "5.2.2";
version = "5.3.2";
src = fetchFromGitHub {
owner = "microsoft";
repo = "TypeScript";
rev = "v${version}";
hash = "sha256-wjoqDmCudN5+9C3GrP1viiXBvsWgU0UIYWaFeK/TJEY=";
hash = "sha256-lwc2bYC2f8x3Np/LxbN+5x6Apuekp7LmHXNutqL9Z2E=";
};
npmDepsHash = "sha256-7Wm6nlpqZRNqBU0mYFZRVWQkO4uqvrKrp2h2aEmZtow=";
patches = [
./disable-dprint-dstBundler.patch
];
npmDepsHash = "sha256-vD/tax5RjREdsdte3ONahVf9GPOkxPqeP9jmsxjCYkY=";
meta = with lib; {
description = "A superset of JavaScript that compiles to clean JavaScript output";

View File

@ -0,0 +1,15 @@
Disable dprint on dstBundler
dprint fails on sandbox, because it requires internet access to install its
plugins.
--- a/scripts/dtsBundler.mjs
+++ b/scripts/dtsBundler.mjs
@@ -430,5 +430,5 @@
return result.replace(/\r\n/g, "\n");
}
-fs.writeFileSync(output, dprint(publicContents));
-fs.writeFileSync(internalOutput, dprint(internalContents));
+fs.writeFileSync(output, publicContents);
+fs.writeFileSync(internalOutput, internalContents);