Skip to content

Commit

Permalink
Tried fixing the error regarding ts-node being unknown. Still no solu…
Browse files Browse the repository at this point in the history
…tion yet
  • Loading branch information
BrentBlanckaert committed Oct 23, 2024
1 parent 53886db commit 3d6c7c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 9 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
doCheck = false;
postInstall = ''
wrapProgram "$out/bin/tested" \
--prefix NODE_PATH : ${ast}/lib/node_modules
--prefix NODE_PATH : ${ast}/lib/node_modules:/nix/store/1vkwbqyd02jfmgyaxq3bly78rlx5mqx9-TESTed-dir/bin/ts-node
'';
};
devShell = self.outputs.devShells.${system}.default;
Expand All @@ -123,8 +123,10 @@
checkPhase = ''
DOTNET_CLI_HOME="$(mktemp -d)"
export DOTNET_CLI_HOME
NODE_PATH=${ast}/lib/node_modules
TS_NODE_PROJECT=./tsconfig.json
NODE_PATH=${ast}/lib/node_modules:/nix/store/1vkwbqyd02jfmgyaxq3bly78rlx5mqx9-TESTed-dir/bin/ts-node
export NODE_PATH
export TS_NODE_PROJECT
poetry run pytest -n auto --cov=tested --cov-report=xml tests/
'';
installPhase = ''
Expand Down Expand Up @@ -154,7 +156,11 @@
}
{
name = "NODE_PATH";
prefix = "${ast}/lib/node_modules";
prefix = "${ast}/lib/node_modules:/nix/store/1vkwbqyd02jfmgyaxq3bly78rlx5mqx9-TESTed-dir/bin/ts-node";
}
{
name = "TS_NODE_PROJECT";
prefix = "./tsconfig.json";
}
];
commands = [
Expand Down
3 changes: 0 additions & 3 deletions package.json

This file was deleted.

0 comments on commit 3d6c7c9

Please sign in to comment.