Skip to content

Commit abc8522

Browse files
lerarosaleneremy
authored andcommitted
Get rid of spawning shell windows if nodemon is started without console.
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.
1 parent 204af11 commit abc8522

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/spawn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = function spawnCommand(command, config, eventArgs) {
4444
sh = process.env.comspec || 'cmd';
4545
shFlag = '/d /s /c';
4646
spawnOptions.windowsVerbatimArguments = true;
47+
spawnOptions.windowsHide = true;
4748
}
4849

4950
const args = command.join(' ');

0 commit comments

Comments
 (0)