Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.19 KB

README.md

File metadata and controls

65 lines (46 loc) · 1.19 KB

upgrade-deps

npm version

Minimal CLI for automating upgrading package.json dependencies

Features:

  • updates package.json to use latest exact versions within same major release for dependencies + devDependencies
  • parallelizes as much as possible so it's blazing fast
  • code is minimal so it's easy to audit
  • can upgrade npm dependencies
  • can upgrade private dependencies in private git repos by cloning an ephemeral copy of the repo to ~/.upgrade-deps/ using your local git CLI

Usage

Usage: cli [options]

CLI for automating upgrading package.json dependencies. Semver prefixes will be stripped in favor of using exact versions.

Options:
  -b, --breaking include breaking/major version upgrades
  -v, --version  output the version
  -h, --help     display help for command

npx

npx upgrade-deps

Global Install

npm install -g upgrade-deps

and then just:

upgrade-deps

Local Install

npm install --save-dev upgrade-deps

and then add a package.json script:

{
  "scripts": {
    "upgrade-deps": "upgrade-deps"
  }
}

and then just:

npm run upgrade-deps