fix(windows): hide child console window when running PrintDeps (#11468)

This commit is contained in:
Yury Semikhatsky 2022-01-19 10:38:51 -08:00 committed by GitHub
parent a65f7066d5
commit c510819407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}> {
const process = spawn(cmd, args, options);
const process = spawn(cmd, args, Object.assign({ windowsHide: true }, options));
return new Promise(resolve => {
let stdout = '';