GithubHelp home page GithubHelp logo

geeron / yarn-upgrade-all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tylerlong/yarn-upgrade-all

0.0 0.0 0.0 183 KB

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

JavaScript 83.28% TypeScript 16.72%

yarn-upgrade-all's Introduction

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

โ— 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

yarn-upgrade-all's People

Contributors

alireza-mh avatar gorniaky avatar keneucker avatar tylerlong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.