nodePackages: add ts-node

This commit is contained in:
Jonas Heinrich 2022-04-11 14:34:18 +02:00 committed by Yt
parent b90aae9445
commit 00214c2346
3 changed files with 1799 additions and 1823 deletions

View File

@ -459,6 +459,14 @@ let
'';
});
ts-node = super.ts-node.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/ts-node" \
--prefix NODE_PATH : ${self.typescript}/lib/node_modules
'';
});
typescript = super.typescript.overrideAttrs (oldAttrs: {
meta = oldAttrs.meta // { mainProgram = "tsc"; };
});

View File

@ -347,6 +347,7 @@
, "titanium"
, "triton"
, "tsun"
, "ts-node"
, "ttf2eot"
, "typescript"
, "typescript-language-server"

File diff suppressed because it is too large Load Diff