-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
Issue description
When passing arguments, flags are ignored, only what comes after the flag is processed.
** RELATED ** npm/cli#7375
Context
package.json
"dev": "tsnd --cache-directory \".cache\" --watch \"./rithmic-client-alpha/src, ./strategy\" --respawn --clear --no-warnings ./src/index.ts"
npm run dev -- -s main
[ 'C:\\Users\\_\\apps\\node\\node.exe', './src/index.ts', 'main' ]
Versions
Windows 10 (19044.1288)
node v21.7.3
[email protected]
[email protected]
Did you try to run with ts-node?
yes, and it works as expected:
C:\Users\_\projects\xyz\projects\xyz> ts-node src/index.ts -- -s main
[
'C:\\Users\\_\\apps\\node\\node_modules\\ts-node\\dist\\bin.js',
'C:\\Users\\_\\projects\\xyz\\projects\\xyz\\src\\index.ts',
'-s',
'main'
]
Did you try to run with --files option enabled?
no
Did you try to run with --debug option enabled?
yes
[DEBUG] 20:44:45 Starting child process -r C:/Users/_/AppData/Local/Temp/ts-node-dev-hook-24350054343735494.js --no-warnings C:\Users\_\apps\node\node_modules\ts-node-dev\lib\wrap.js ./src/index.ts main
this works too:
ts-node-dev src/index.ts -- -s main
this doesn't:
npm run dev -- -s main
Do you have a repro example (git repo) with simple steps to reproduce your problem?
no
Metadata
Metadata
Assignees
Labels
No labels