Features
-
A
"pnpm"."overrides"
field may be used to override version ranges of dependencies. #2946The overrides field can be specified only in the root project's
package.json
.An example of the
"pnpm"."overrides"
field:{ "pnpm": { "overrides": { "foo": "^1.0.0", "bar@^2.1.0": "3.0.0", "qar@1>zoo": "2" } } }
You may specify the package to which the overriden dependency belongs by separating the package selector from the dependency selector with a ">". For example
qar@1>zoo
will only override thezoo
dependency of anyqar@1
dependency. -
A new setting added for specifying the shell to use, when running scripts: script-shell #2942
-
When some of the dependencies of a package have the package as a peer depenendency (for instance, some of the dependencies of webpack have webpack as peer dependency), don't make the dependency a peer depenendency of itself.
-
Lockfile version bumped to 5.2