packages-update
v1.2.1
Published
π¦ A basic updater for packages, without any dependencies
Downloads
271
Maintainers
Readme
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
ornpm-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 frompackage-lock.json
π - This updater looks in package.json for
devDependencies
anddependencies
π - This updater doesn't search or update for tag versions (alpha, beta, rc, etc.) πΎ
Credits
| Contributors | GitHub | | ------------ | ---------------------------------------------------------------------------------- | | Author | |