From abc8522a68fd631c21ece3d773a6fc1615191756 Mon Sep 17 00:00:00 2001 From: Larissa Rosalene <10000537+lerarosalene@users.noreply.github.com> Date: Wed, 1 Feb 2023 05:05:30 +0300 Subject: [PATCH] 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. --- lib/spawn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/spawn.js b/lib/spawn.js index 9aa4f80e..256734a0 100644 --- a/lib/spawn.js +++ b/lib/spawn.js @@ -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(' ');