fix(plugin-commands-script-runners): align runRecursive with how run assigns silent loglevel (#8302)
close #7608
This commit is contained in:
1 parent
1e4dd79163
commit
999d2ef2f8
2 files changed
+8
-1
No files matched your search
@@ -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'
|
| 'shellEmulator'
|
||||||
| 'stream'
|
| 'stream'
|
||||||
> & Required<Pick<Config, 'allProjects' | 'selectedProjectsGraph' | 'workspaceDir' | 'dir'>> &
|
> & 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
|
ifPresent?: boolean
|
||||||
resumeFrom?: string
|
resumeFrom?: string
|
||||||
@@ -120,6 +120,7 @@ export async function runRecursive (
|
|||||||
rootModulesDir: await realpathMissing(path.join(prefix, 'node_modules')),
|
rootModulesDir: await realpathMissing(path.join(prefix, 'node_modules')),
|
||||||
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
scriptsPrependNodePath: opts.scriptsPrependNodePath,
|
||||||
scriptShell: opts.scriptShell,
|
scriptShell: opts.scriptShell,
|
||||||
|
silent: opts.reporter === 'silent',
|
||||||
shellEmulator: opts.shellEmulator,
|
shellEmulator: opts.shellEmulator,
|
||||||
stdio,
|
stdio,
|
||||||
unsafePerm: true, // when running scripts explicitly, assume that they're trusted.
|
unsafePerm: true, // when running scripts explicitly, assume that they're trusted.
|
||||||
|
|||||||
Reference in new issue
Block a user