PNpM CLI
Minor Changes
-
A new setting is supported in the
pnpmsection of thepackage.jsonfile #4001.onlyBuiltDependenciesis an array of package names that are allowed to be executed during installation. If this field exists, only mentioned packages will be able to run install scripts.{ "pnpm": { "onlyBuiltDependencies": ["fsevents"] } } -
-Fis a short alias of--filter#3467. -
When adding a new dependency, use the version specifier from the overrides, when present #4313.
Normally, if the latest version of
foois2.0.0, thenpnpm add fooinstallsfoo@^2.0.0. This behavior changes iffoois specified in an override:{ "pnpm": { "overrides": { "foo": "1.0.0" } } }In this case,
pnpm add foowill addfoo@1.0.0to the dependency. However, if a version is explicitly specifying, then the specified version will be used and the override will be ignored. Sopnpm add foo@0will install v0 and it doesn't matter what is in the overrides.
Patch Changes
- Ignore case, when verifying package name in the store #4367.
- When a peer dependency range is extended with
*, just replace any range with*. - When some dependency types are skipped, let the user know via the installation summary.
Full Changelog: https://github.com/pnpm/pnpm/compare/v6.31.0...v6.32.0