about summary refs log tree commit diff
path: root/pkgs/development/compilers/typescript
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-23 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2023-11-23 04:20:00 +0000
commit6e269f0dfffe32d90f5491e38454209f125f449d (patch)
tree4aa9ad1aa7070740f2a11071bb7bb997ccc57935 /pkgs/development/compilers/typescript
parent1fb123914bf5f632bb3fe00f854a643de36895cf (diff)
typescript: 5.2.2 -> 5.3.2
Diff: https://github.com/microsoft/TypeScript/compare/v5.2.2...v5.3.2

Changelog: https://github.com/microsoft/TypeScript/releases/tag/v5.3.2
Diffstat (limited to 'pkgs/development/compilers/typescript')
-rw-r--r--pkgs/development/compilers/typescript/default.nix12
-rw-r--r--pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch15
2 files changed, 23 insertions, 4 deletions
diff --git a/pkgs/development/compilers/typescript/default.nix b/pkgs/development/compilers/typescript/default.nix
index af60548c32e02..ae59f26757c77 100644
--- a/pkgs/development/compilers/typescript/default.nix
+++ b/pkgs/development/compilers/typescript/default.nix
@@ -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";
diff --git a/pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch b/pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch
new file mode 100644
index 0000000000000..95ccf411a93e3
--- /dev/null
+++ b/pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch
@@ -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);