fix: default to "inherit" for Deno.Command#spawn()'s stdout & stderr (#17025)

This commit is contained in:
Leo Kettmeir 2022-12-13 05:12:19 +01:00 committed by GitHub
parent 8972ebc9cc
commit a2ba573e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 6 deletions

View file

@ -307,7 +307,12 @@
}
spawn() {
return spawnChild(this.#command, this.#options);
const options = {
...(this.#options ?? {}),
stdout: this.#options?.stdout ?? "inherit",
stderr: this.#options?.stderr ?? "inherit",
};
return spawnChild(this.#command, options);
}
};
}