Minor Changes
-
A new setting is supported in the
pnpm
section of thepackage.json
file #4001.onlyBuiltDependencies
is 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"] } }
-
-F
is 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
foo
is2.0.0
, thenpnpm add foo
installsfoo@^2.0.0
. This behavior changes iffoo
is specified in an override:{ "pnpm": { "overrides": { "foo": "1.0.0" } } }
In this case,
pnpm add foo
will addfoo@1.0.0
to 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@0
will 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: v6.31.0...v6.32.0