Loading pkgs/development/compilers/typescript/default.nix +8 −4 Original line number Diff line number Diff line Loading @@ -2,16 +2,20 @@ 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"; Loading pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch 0 → 100644 +15 −0 Original line number Diff line number Diff line 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); Loading
pkgs/development/compilers/typescript/default.nix +8 −4 Original line number Diff line number Diff line Loading @@ -2,16 +2,20 @@ 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"; Loading
pkgs/development/compilers/typescript/disable-dprint-dstBundler.patch 0 → 100644 +15 −0 Original line number Diff line number Diff line 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);