fix(windows): hide child console window when running PrintDeps (#11468)
This commit is contained in:
parent
a65f7066d5
commit
c510819407
|
|
@ -241,7 +241,7 @@ function toMegabytes(bytes: number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function spawnAsync(cmd: string, args: string[], options: SpawnOptions = {}): Promise<{stdout: string, stderr: string, code: number | null, error?: Error}> {
|
export function spawnAsync(cmd: string, args: string[], options: SpawnOptions = {}): Promise<{stdout: string, stderr: string, code: number | null, error?: Error}> {
|
||||||
const process = spawn(cmd, args, options);
|
const process = spawn(cmd, args, Object.assign({ windowsHide: true }, options));
|
||||||
|
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
let stdout = '';
|
let stdout = '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue