Skip to content

Commit 010266a

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 ec9ea6c commit 010266a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/spawn.js

+1
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)