Skip to content

Commit 999d2ef

Browse files
authored
fix(plugin-commands-script-runners): align runRecursive with how run assigns silent loglevel (#8302)
close #7608
1 parent 1e4dd79 commit 999d2ef

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.changeset/quiet-wasps-melt.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pnpm/plugin-commands-script-runners": patch
3+
"pnpm": patch
4+
---
5+
6+
Silent reporting fixed with the `pnpm exec` command [#7608](https://github.com/pnpm/pnpm/issues/7608).

‎exec/plugin-commands-script-runners/src/runRecursive.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type RecursiveRunOpts = Pick<Config,
3232
| 'shellEmulator'
3333
| 'stream'
3434
> & Required<Pick<Config, 'allProjects' | 'selectedProjectsGraph' | 'workspaceDir' | 'dir'>> &
35-
Partial<Pick<Config, 'extraBinPaths' | 'extraEnv' | 'bail' | 'reverse' | 'sort' | 'workspaceConcurrency'>> &
35+
Partial<Pick<Config, 'extraBinPaths' | 'extraEnv' | 'bail' | 'reporter' | 'reverse' | 'sort' | 'workspaceConcurrency'>> &
3636
{
3737
ifPresent?: boolean
3838
resumeFrom?: string
@@ -120,6 +120,7 @@ export async function runRecursive (
120120
rootModulesDir: await realpathMissing(path.join(prefix, 'node_modules')),
121121
scriptsPrependNodePath: opts.scriptsPrependNodePath,
122122
scriptShell: opts.scriptShell,
123+
silent: opts.reporter === 'silent',
123124
shellEmulator: opts.shellEmulator,
124125
stdio,
125126
unsafePerm: true, // when running scripts explicitly, assume that they're trusted.

0 commit comments

Comments
 (0)