Packages Update
📦 A basic updater for packages, without any dependencies
Install
npm i packages-update -D
Usage
npx npu
Update to latest version
npx npu || npx npu --latest
# prettier: ^1.4.2 ➜ ^2.8.1
# ...
- Get the default latest version for each package
Update to latest major version
npx npu --major
# prettier: ^1.4.2 ➜ ^2.8.1
# ...
- Get the highest version for each package, even if it is not the default latest
Update to latest minor version
npx npu --minor
# prettier: ^1.4.2 ➜ ^1.19.1
# ...
- Get the latest minor version for each package, before the next major version
Update to latest patch version
npx npu --patch
# prettier: ^1.4.2 ➜ ^1.4.4
# ...
- Get the latest patch version for each package, before the next minor version
Only lock current versions
npx npu --lock
# prettier: ^1.4.2 ➜ 1.4.2
# ...
- Just locks package versions, without checking versions or updating
Aliases
-
pu
, npu
, packages-update
or npm-packages-update
:
npx pu
npx npu
npx packages-update
npx npm-packages-update
Notes
- When update packages, run
npm i
to install new versions 🚀 - When lock packages, run
npm ci
to install the static versions from package-lock.json
🔒 - This updater looks in package.json for
devDependencies
and dependencies
🔎 - This updater doesn't search or update for tag versions (alpha, beta, rc, etc.) 👾
Credits
Contributors | GitHub |
---|
Author | |