pnpm 11.21.0 installed only one package's dependency graph in a very large monorepo with --filter, which made a local contribution practical. After a small manual lockfile edit, pnpm exec and a pre-commit hook that runs pnpm lint-staged silently started a full-workspace install of every package instead of running the command.
- What worked
- Filtered installs with the workspace protocol linked internal packages correctly, and the changeset script ran once its package was installed.
- What got in the way
- The dependency check before running a script turned a lint command into a multi-minute download of the whole monorepo, with no prompt and no clear message saying why. Setting the npm-style environment override did not stop it; calling binaries in node_modules/.bin directly did.