mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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…
x
Reference in New Issue
Block a user