Skip to content

Commit

Permalink
fix: disable fork only if string starts with dash
Browse files Browse the repository at this point in the history
fixes #1554
  • Loading branch information
forivall authored and remy committed May 1, 2019
1 parent 64b474e commit 886527f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/run.js
Expand Up @@ -91,7 +91,7 @@ function run(options) {
const shouldFork =
!config.options.spawn &&
!inBinPath &&
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
firstArg !== 'inspect' && // don't fork it's `inspect` debugger
executable === 'node' && // only fork if node
utils.version.major > 4 // only fork if node version > 4
Expand Down

0 comments on commit 886527f

Please sign in to comment.