I'm using Yarn 4. There are a few packages I'm keeping at older versions because the new versions are incompatible.
With Yarn 1's yarn upgrade
, it ignored the major upgrades. With Yarn 2+, I think we're supposed to upgrade all packages with yarn up '**'
or yarn up -R '**'
. However, these also upgrade all the major versions.
With yarn up
, seems like my options are:
yarn up '**'
, then individually install the older versionsyarn upgrade-interactive
, then press right + down a few dozen times
Is there another way to upgrade only the minor versions?
I guess
yarn up --caret --interactive
does what you wantHowever, both
yarn up
anyarn upgrade-interactive
don't seem to be handy and easy to use, so I prefer using https://github.com/antfu/tazeIt will show what's it going to upgrade, then two presses of
Enter
, and it's installed.By default,
taze
will only bump versions in the ranges you specified inpackage.json
(which is safe and the default behavior ofnpm install
)In the above example I use
minor
that would break over~
ranges and ignore majors