diff --git a/.changeset/cli-common-runcheck-stdio-ignore.md b/.changeset/cli-common-runcheck-stdio-ignore.md new file mode 100644 index 0000000000..1d2986eaf0 --- /dev/null +++ b/.changeset/cli-common-runcheck-stdio-ignore.md @@ -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. diff --git a/packages/cli-common/src/run.ts b/packages/cli-common/src/run.ts index 23e71460e4..0e95bd517b 100644 --- a/packages/cli-common/src/run.ts +++ b/packages/cli-common/src/run.ts @@ -211,7 +211,7 @@ export async function runOutput( */ export async function runCheck(args: string[]): Promise { try { - await run(args).waitForExit(); + await run(args, { stdio: 'ignore' }).waitForExit(); return true; } catch { return false;