Change8

v10.4.0

Breaking Changes
📦 pnpmView on GitHub →
1 breaking2 features🐛 3 fixes🔧 4 symbols

Summary

pnpm v10 introduces `--global` support for approve-builds, a new `--allow-build` flag for add, and several bug fixes and documentation updates.

⚠️ Breaking Changes

  • Refer to the breaking changes introduced in v10 at https://github.com/pnpm/pnpm/releases/tag/v10.0.0.

✨ New Features

  • `pnpm approve-builds --global` now works, allowing dependencies of globally installed packages to run postinstall scripts.
  • `pnpm add` supports a new `--allow-build` flag to permit building specified dependencies and automatically adds them to the `pnpm.onlyBuiltDependencies` field in package.json.

🐛 Bug Fixes

  • `pnpm approve-builds` now works after two consecutive `pnpm install` runs (fixes #9083).
  • Updated instruction for updating pnpm with corepack (fixes #9101).
  • The pnpm version specified by `packageManager` can no longer start with `v`, fixing validation.

🔧 Affected Symbols

pnpm approve-buildspnpm addpnpm.onlyBuiltDependenciespackageManager