Files
AltayandZoltan Kochan 0d2663fb6f fix(run): treat the script echo and verify-deps install output as info-level (#15456)
With --loglevel=warn or error (or the loglevel setting), pnpm run still
printed the `$ <command>` echo before a foreground script and the summary of
the install that verifyDepsBeforeRun spawns. Both are info-level output.

Rust: expose the default reporter's configured ceiling as max_log_level(),
suppress the echo in run and run -r when it is below info (as the silent
reporter already does), and forward --loglevel=warn|error to the spawned
verify-deps install.

TypeScript: pass silent to runLifecycleHook when loglevel is silent, warn, or
error in run and runRecursive (loglevel=silent selected the silent reporter
without setting reporter, so the echo still printed), and forward those
levels through runPnpmCli to the spawned install in runDepsStatusCheck
(shared by run and exec).

Closes pnpm/pnpm#8944

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-09-25 08:17:34 +02:00
..