fix: respect silent reporter when deciding whether to output CI group stdout markers (#9565)

close #9563
This commit is contained in:
Anton Stoychev
2025-05-22 12:32:34 +03:00
committed by Zoltan Kochan
parent 3f268ff6f5
commit 55424eb581
2 changed files with 7 additions and 1 deletions

View File

@@ -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).

View File

@@ -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,