Fix runCheck to ignore stdio of spawned process

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-04 17:33:29 +01:00
parent d757071651
commit 9361965db9
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
---
'@backstage/cli-common': patch
---
Fixed `runCheck` to ignore stdio of the spawned process, preventing unwanted output from leaking to the terminal.
+1 -1
View File
@@ -211,7 +211,7 @@ export async function runOutput(
*/
export async function runCheck(args: string[]): Promise<boolean> {
try {
await run(args).waitForExit();
await run(args, { stdio: 'ignore' }).waitForExit();
return true;
} catch {
return false;