Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I version bump all my dependencies?

Tags:

Having yarn outdated is quite informative but I'd like to avoid running over package by package doing yarn upgrade.

From yarn's documentation, just yarn upgrade without arguments is said to upgrade all dependencies but there's no change in my project's package.json and yarn outdated shows the same packages versions than before.

Is there some command or argument that just bumps all my dependencies?

If not, is the practice discouraged in some way?

like image 566
tutuca Avatar asked Dec 12 '16 14:12

tutuca


People also ask

How do I install all dependencies on yarn?

To install dependencies, you have to run yarn install in the root of your directory to install all the dependencies for a project. The dependencies will be retrieved from the package. json file you pushed to version control, and will be stored in the yarn. lock file.


1 Answers

Upgrade all packages to latest version

yarn upgrade --latest 
like image 108
user2210411 Avatar answered Sep 19 '22 06:09

user2210411