pnpm update
Aliases: up
, upgrade
pnpm update
updates packages to their latest version based on the specified
range.
When used without arguments, updates all dependencies.
TL;DR
Command | Meaning |
---|---|
pnpm up | Updates all dependencies, adhering to ranges specified in package.json |
pnpm up --latest | Updates all dependencies, ignoring ranges specified in package.json |
pnpm up foo@2 | Updates foo to the latest version on v2 |
pnpm up "@babel/*" | Updates all dependencies under the @babel scope |
Selecting dependencies with patterns
You can use patterns to update specific dependencies.
Update all babel
packages:
pnpm update "@babel/*"