You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test combining node flags with ts-node entrypoint and flags in process.execArgv #1657
Pretty sure we have a bug in our execArgv logic. It works only if there are not any other node flags in the execArgv array.
Impact for users:
This affects child_process.fork(), since it uses execArgv to create a similar child runtime.
For example, child_process.fork() fails if node is launched node --no-warnings ./node_modules/ts-node/dist/bin ./index.ts
With the fix, child_process.fork() will automatically preserve node flags and ts-node hooks
To test, create a script that spawns a child that spawns a grandchild. In the grandchild, inspect process.execArgv and process.argv
Activity
Fix #1657: bug where node flags were not correctly preserved in `exec…
Update dependency ts-node to v10.6.0 (#1195)