mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-02 11:12:58 -05:00
* 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
29 KiB
29 KiB