Use NODE_OPTIONS to set PnP require in wrapper

Fixes PnP in subprocesses.
This commit is contained in:
Stéphan Kochen
2020-09-28 19:22:56 +02:00
parent 48f6aac480
commit 9e7a15a264
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
#!/bin/sh
exec '@@NODE_PATH@@' -r '@@PNP_PATH@@' '@@SCRIPT_PATH@@' "$@"
export NODE_OPTIONS="--require @@PNP_PATH@@"
exec '@@NODE_PATH@@' '@@SCRIPT_PATH@@' "$@"