We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
remy
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 64b474e commit 886527fCopy full SHA for 886527f
lib/monitor/run.js
@@ -91,7 +91,7 @@ function run(options) {
91
const shouldFork =
92
!config.options.spawn &&
93
!inBinPath &&
94
- firstArg.indexOf('-') === -1 && // don't fork if there's a node exec arg
+ !(firstArg.indexOf('-') === 0) && // don't fork if there's a node exec arg
95
firstArg !== 'inspect' && // don't fork it's `inspect` debugger
96
executable === 'node' && // only fork if node
97
utils.version.major > 4 // only fork if node version > 4
0 commit comments