summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-10-25 18:57:29 +0200
committerRory& <root@rory.gay>2024-10-28 00:32:18 +0100
commit2feb90475e12d23e892aef37bb01e2361dac4bc6 (patch)
tree79c7f9f6d669a59d53e56f4815e5fcd84b870513 /scripts
parentUpdate some patches, switch to node-fetch-commonjs, more updates (diff)
downloadserver-ts-2feb90475e12d23e892aef37bb01e2361dac4bc6.tar.xz
Fix module resolution when $CWD != .
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test-non-cwd-exec.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/test-non-cwd-exec.sh b/scripts/test-non-cwd-exec.sh
new file mode 100755

index 000000000..7d33c46f8 --- /dev/null +++ b/scripts/test-non-cwd-exec.sh
@@ -0,0 +1,12 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i "bash -x" -p bash jq git nodejs +npm i +npm run setup || exit 1 + +export OWD="$PWD" +export NWD="`mktemp -d`" +echo "Src dir: $OWD" +echo "Exec dir: $NWD" + +#NODE_PATH="$OWD/dist" +node "$OWD/dist/api/start.js" \ No newline at end of file