How can I version bump all my dependencies?
You can update your packages to the latest version specified in the package.json using yarn upgrade
without any args.
This is taken from the docs:
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.
This will only update packages that are allowed to be upgraded in the package.json e.g. using ^
(e.g. ^0.13.0
would update to version 0.14.0
if it exists). This will not update your package.json file, but it will update the yarn.lock.
If you want to update dependencies in to the latest version you can use the package npm-check-updates
which will update your package.json:
$ yarn global add npm-check-updates
$ npm-check-updates -u
$ yarn upgrade
Upgrade all packages to latest version
yarn upgrade --latest