Skip to content

Commit

Permalink
Get rid of spawning shell windows if nodemon is started without console.
Browse files Browse the repository at this point in the history
If nodemon is started without it's own console (example: via pm2) on Windows, it spawns console windows for it's monitored processes. This should get rid of this behaviour.
  • Loading branch information
lerarosalene authored and remy committed Mar 2, 2023
1 parent ec9ea6c commit 010266a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = function spawnCommand(command, config, eventArgs) {
sh = process.env.comspec || 'cmd';
shFlag = '/d /s /c';
spawnOptions.windowsVerbatimArguments = true;
spawnOptions.windowsHide = true;
}

const args = command.join(' ');
Expand Down

0 comments on commit 010266a

Please sign in to comment.