Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yarn-upgrade-all

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-upgrade-all

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).

  • 0.7.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
decreased by-2.07%
Maintainers
0
Weekly downloads
 
Created
Source

yarn-upgrade-all

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 yarn-upgrade-all

Usage

yarn yarn-upgrade-all

How does it work?

For every type of dependencies in package.json, run

yarn add [--dev|--peer] <package-names>`.

Additional options

You may pass additional options to the yarn add command:

yarn yarn-upgrade-all --option-1 --option-2

Which will invoke:

yarn add [--dev|--peer] <package-names> --option-1 --option-2

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.

Ignore some packages

You can add the following to package.json file:

...
"yarn-upgrade-all": {
    "ignore": [
        "react"
    ]
}
...

With configuration above, yarn-upgrade-all won't upgrade react for you.

Local packages

Local packages are ignored if they start with file::

"dependencies": {
  "foo": "file:../foo"
}

Installation globally

yarn global add yarn-upgrade-all
Installation on Windows
npm install -g yarn-upgrade-all

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

Upgrade global packages

yarn-upgrade-all --global or yarn-upgrade-all -g

FAQs

Package last updated on 07 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc