Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.29 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.29 KB

npm-bumpall

Utility to bump npm packages, by default to the latest minor version.

Main feature is also updating the package.json, rather than just updating the version in the lockfile (e.g. like how npm update works)

Usage

Execute the binary to see available updates

~/repos/npm-bumpall/rust/target/release/npm-bumpall

To accept these updates, pass the -u or --update flag

~/repos/npm-bumpall/rust/target/release/npm-bumpall -u

image

Options

--help | -h - print help to the terminal

--dry-run | -d - list dependencies which would be bumped, but don't update them

--latest | -l - bump dependencies to latest possible version (includes major changes)

--legacy-peer-deps - includes this option in the npm install under the hood

--patch | -p - only include patch version updates (experimental)

--verbose | -v - include all possible messages in console output (e.g. warnings from npm itself)

Compiling

Generate a release build

cargo build --release

Development

Run locally against stub folder

cargo build
cd ./npm_dir
../target/debug/npm-bumpall

downgrade stub folder

sh ./npm_dir/downgrade_deps.sh