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 remy#1554
  • Loading branch information
forivall authored Apr 23, 2019
1 parent aa41ab2 commit a0d47ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/run.js
Original file line number Diff line number Diff line change
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) === -1 && // 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 a0d47ef

Please sign in to comment.