mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-11 00:18:32 -05:00
fix(plugin-commands-script-runners): align runRecursive with how run assigns silent loglevel (#8302)
close #7608
This commit is contained in:
6
.changeset/quiet-wasps-melt.md
Normal file
6
.changeset/quiet-wasps-melt.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-script-runners": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Silent reporting fixed with the `pnpm exec` command [#7608](https://github.com/pnpm/pnpm/issues/7608).
|
||||
@@ -32,7 +32,7 @@ export type RecursiveRunOpts = Pick<Config,
|
||||
| 'shellEmulator'
|
||||
| 'stream'
|
||||
> & Required<Pick<Config, 'allProjects' | 'selectedProjectsGraph' | 'workspaceDir' | 'dir'>> &
|
||||
Partial<Pick<Config, 'extraBinPaths' | 'extraEnv' | 'bail' | 'reverse' | 'sort' | 'workspaceConcurrency'>> &
|
||||
Partial<Pick<Config, 'extraBinPaths' | 'extraEnv' | 'bail' | 'reporter' | 'reverse' | 'sort' | 'workspaceConcurrency'>> &
|
||||
{
|
||||
ifPresent?: boolean
|
||||
resumeFrom?: string
|
||||
@@ -120,6 +120,7 @@ export async function runRecursive (
|
||||
rootModulesDir: await realpathMissing(path.join(prefix, 'node_modules')),
|
||||
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
||||
scriptShell: opts.scriptShell,
|
||||
silent: opts.reporter === 'silent',
|
||||
shellEmulator: opts.shellEmulator,
|
||||
stdio,
|
||||
unsafePerm: true, // when running scripts explicitly, assume that they're trusted.
|
||||
|
||||
Reference in New Issue
Block a user