File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ function run(options) {
90
90
sh = process . env . comspec || 'cmd' ;
91
91
shFlag = '/d /s /c' ;
92
92
spawnOptions . windowsVerbatimArguments = true ;
93
+ spawnOptions . windowsHide = true ;
93
94
}
94
95
95
96
var args = runCmd ? utils . stringify ( executable , cmd . args ) : ':' ;
@@ -122,11 +123,15 @@ function run(options) {
122
123
var forkArgs = cmd . args . slice ( 1 ) ;
123
124
var env = utils . merge ( options . execOptions . env , process . env ) ;
124
125
stdio . push ( 'ipc' ) ;
125
- child = fork ( options . execOptions . script , forkArgs , {
126
+ const forkOptions = {
126
127
env : env ,
127
128
stdio : stdio ,
128
129
silent : ! hasStdio ,
129
- } ) ;
130
+ } ;
131
+ if ( utils . isWindows ) {
132
+ forkOptions . windowsHide = true ;
133
+ }
134
+ child = fork ( options . execOptions . script , forkArgs , forkOptions ) ;
130
135
utils . log . detail ( 'forking' ) ;
131
136
debug ( 'fork' , sh , shFlag , args ) ;
132
137
} else {
You can’t perform that action at this time.
0 commit comments