packages-update

1.2.1Β β€’Β PublicΒ β€’Β Published

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 wellwelwel

Package Sidebar

Install

npm i packages-update

Weekly Downloads

35

Version

1.2.1

License

MIT

Unpacked Size

18.5 kB

Total Files

13

Last publish

Collaborators

  • weslley.io