v10.2.0
📦 pnpmView on GitHub →
✨ 1 features🐛 5 fixes🔧 5 symbols
Summary
pnpm v10 introduces default building of packages run via `dlx` and `create`, adds several bug fixes, and improves handling of overrides and proxy settings.
Migration Steps
- When using `pnpm dlx` or `pnpm create` with packages that have build-time dependencies, specify them with the `--allow-build` flag (e.g., `pnpm --allow-build=esbuild dlx bundle`).
✨ New Features
- Packages executed via `pnpm dlx` and `pnpm create` are now allowed to run postinstall build scripts by default.
🐛 Bug Fixes
- Quote args for scripts with shell-quote to support new lines on POSIX only.
- Fixed pnpm deploy failing to read the correct projectId when the deploy source is the same as the workspace directory.
- Proxy settings are now respected when resolving Git-hosted dependencies.
- Overrides no longer add invalid version ranges to peerDependencies; peerDependencies are kept and overridden with production dependencies.
- The package names in the "pnpm.onlyBuiltDependencies" list saved by `pnpm approve-builds` are now sorted.
🔧 Affected Symbols
pnpm dlxpnpm createpnpm deploypnpm approve-buildspnpm.onlyBuiltDependencies