1.0.2 • Published 3 years ago
upgrade-dependencies-simple v1.0.2
upgrade-dependencies-simple
A simple, auditable, no external dependencies cli script that upgrades your dependencies to the latest version
Why?
There are multiple packages claiming to do this. All of them have either many dependencies, lengthy code, or it's hard to audit what they are doing. This project is different. What we do:
- read the
project.jsonfrom the current working dir - fetch the latest
dependenciesanddevDependenciesversions from NPM via a simple rest call - by default no destructive actions are done, the new json simply printed to stdout
- there is a hidden
--force-saveto write out the newpackage.jsonif you are lazy
How to use
Prints the upgraded package.json to stdout. No destructive actions done
npx upgrade-dependencies-simpleOverwrites your package.json.
npx upgrade-dependencies-simple --force-savePS: Don't forget to run npm install after updating your package.json!
Requirements
node version >= 12