Files
pnpm/exec
Oleg Pustovit 85416ea581 fix(run): fail when no packages have script in filtered recursive run (#10437)
* fix(run): fail when no packages have script in filtered recursive run

Previously, `pnpm run -r <script>` and `pnpm run --filter <filter> <script>`
would silently succeed with exit code 0 when no packages had the specified
script, as long as a filter was used. This was inconsistent with the
documentation which states "If none of the packages have the command, the
command fails."

This change makes the command fail with ERR_PNPM_RECURSIVE_RUN_NO_SCRIPT in
all cases where no packages have the script, regardless of whether a filter
is used. The `--if-present` flag can be used to suppress this error.

close #6844
2026-01-16 01:53:37 +01:00
..
2026-01-09 23:47:40 +01:00
2026-01-09 23:47:40 +01:00
2025-12-30 21:49:41 +01:00
2025-12-30 21:49:41 +01:00
2025-10-23 11:57:12 +02:00