Minor Changes
-
Added a new command for upgrading pnpm itself when it isn't managed by Corepack:
pnpm self-update
. This command will work, when pnpm was installed via the standalone script from the pnpm installation page #8424.When executed in a project that has a
packageManager
field in itspackage.json
file, pnpm will update its version in thepackageManager
field.
Patch Changes
-
CLI tools installed in the root of the workspace should be added to the PATH, when running scripts and
use-node-version
is set. -
pnpm setup
should never switch to another version of pnpm.This fixes installation with the standalone script from a directory that has a
package.json
with thepackageManager
field. pnpm was installing the version of pnpm specified in thepackageManager
field due to this issue. -
Ignore non-string value in the os, cpu, libc fields, which checking optional dependencies #8431.
-
Remember the state of edit dir, allow running
pnpm patch-commit
the second time without having to re-runpnpm patch
.