From b113520edc04263a4e3067f119eaf4a80f2f71a4 Mon Sep 17 00:00:00 2001 From: Anton Stoychev Date: Thu, 22 May 2025 12:32:34 +0300 Subject: [PATCH] fix: respect silent reporter when deciding whether to output CI group stdout markers (#9565) close #9563 --- .changeset/thin-badgers-punch.md | 6 ++++++ exec/plugin-commands-script-runners/src/runRecursive.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/thin-badgers-punch.md diff --git a/.changeset/thin-badgers-punch.md b/.changeset/thin-badgers-punch.md new file mode 100644 index 0000000000..469e441a20 --- /dev/null +++ b/.changeset/thin-badgers-punch.md @@ -0,0 +1,6 @@ +--- +"@pnpm/plugin-commands-script-runners": patch +"pnpm": patch +--- + +`pnpm -r --silent run` should not print out section [#9563](https://github.com/pnpm/pnpm/issues/9563). diff --git a/exec/plugin-commands-script-runners/src/runRecursive.ts b/exec/plugin-commands-script-runners/src/runRecursive.ts index c5af3d44a7..c1c3f2ca21 100644 --- a/exec/plugin-commands-script-runners/src/runRecursive.ts +++ b/exec/plugin-commands-script-runners/src/runRecursive.ts @@ -145,7 +145,7 @@ export async function runRecursive ( workspaceDir: opts.workspaceDir, } const _runScript = runScript.bind(null, { manifest: pkg.package.manifest, lifecycleOpts, runScriptOptions, passedThruArgs }) - const groupEnd = getWorkspaceConcurrency(opts.workspaceConcurrency) > 1 + const groupEnd = Boolean(lifecycleOpts.silent) || getWorkspaceConcurrency(opts.workspaceConcurrency) > 1 ? undefined : groupStart(formatSectionName({ name: pkg.package.manifest.name,