We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa41ab2 commit 8a86f2dCopy full SHA for 8a86f2d
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