0.0.12 • Published 5 years ago

@zwik/yarn-upgrade-all v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@zwik/yarn-upgrade-all

Based on yarn-upgrade-all which is very slow and was missing some functionality, such as exact/tilde/caret versioning, I've decided to rework it a bit resulting in this packages.

This is a command line utility program to upgrade all the packages in your package.json to the latest version (potentially upgrading packages across major versions).

Installation

yarn add --dev @zwik/yarn-upgrade-all

Installation globally

yarn global add @zwik/yarn-upgrade-all

Installation on Windows

npm install -g @zwik/yarn-upgrade-all

:exclamation: Don't use yarn to install it on Windows because there is a bug: yarnpkg/yarn#2224.

Usage

npx @zwik/yarn-upgrade-all

Will update packages with caret ^ versioning.

npx @zwik/yarn-upgrade-all -E

Will update packages with exact versioning.

npx @zwik/yarn-upgrade-all -T

Will update packages with tilde versioning.

How does it work?

For every package in package.json, it runs yarn add [--dev|--peer] <package-name>.

Why not simply yarn upgrade --latest ?

Most of the time yarn upgrade --latest works. But I did meet some cases when it didn't work. I am not sure of the reason, maybe it's yarn's bug.

This library is very robust because it goes the hard way.

What if a package failed to install?

In that case, that package will be skipped and an error message will be printed.

You need to read the error message and manually install that package.

It is the recommended flow. Because if a package failed to install, most of the time, you need to manually troubleshoot the issue and fix the issue.

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago