yarn upgrade

Upgrades packages to their latest version based on the specified range.

yarn upgrade

This command updates all dependencies to their latest version based on the version range specified in the package.json file. The yarn.lock file will be recreated as well.

$ yarn upgrade
yarn upgrade vx.x.x
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
success Saved 867 new dependencies.
[...]
β”œβ”€ jest-cli@16.0.1
β”‚  β”œβ”€ yargs-parser@3.2.0
β”‚  └─ yargs@5.0.0
β”œβ”€ jest-diff@16.0.0
β”‚  └─ diff@3.0.1
[...]
└─ yargs@4.8.1
✨  Done in 20.79s.

Also see:

  • yarn add: add a package to use in your current package.

← Previous: yarn unlink Next: yarn version