We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need to put --no-warnings --loader ts-node/esm --experimental-vm-modules to node args, so we use env -S:
--no-warnings --loader ts-node/esm --experimental-vm-modules
env -S
sidecar/bin/sidecar-dump.ts
Line 1 in 28461a0
However, this will generate the following node_modules/.bin files:
node_modules/.bin
IF EXIST "%dp0%\-S.exe" ( SET "_prog=%dp0%\-S.exe" ) ELSE ( SET "_prog=-S" SET PATHEXT=%PATHEXT:;.JS;=;% )
if (Test-Path "$basedir/-S$exe") { # Support pipeline input if ($MyInvocation.ExpectingInput) { $input | & "$basedir/-S$exe" node --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args } else { & "$basedir/-S$exe" node --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args } $ret=$LASTEXITCODE }
The -S.exe and -s$exe are both not correct, which should be set to node.exe
-S.exe
-s$exe
node.exe
To be investigated.
#!/usr/bin/env -S NODE_OPTIONS="--no-warnings --loader ts-node/esm --experimental-vm-modules" node
Related issues:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The Problem
We need to put
--no-warnings --loader ts-node/esm --experimental-vm-modules
to node args, so we useenv -S
:sidecar/bin/sidecar-dump.ts
Line 1 in 28461a0
However, this will generate the following
node_modules/.bin
files:The
-S.exe
and-s$exe
are both not correct, which should be set tonode.exe
The Solution
To be investigated.
Related resources
Related issues:
The text was updated successfully, but these errors were encountered: