Skip to content

This is a script to update Node.js project package definition to the latest STABLE versions in the package.json file

License

Notifications You must be signed in to change notification settings

robin98sun/LatestStablePackages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

LatestStablePackages

In a Node.js project, although you can set the package version definition to * to get the newest versions automatically, sometimes the unstable version could be included which may cause your product system unstable too. This script is to update all the package definitions in package.json file to the latest STABLE ones, and rebuild all packages as you will.


Website http://mrsunlin.github.io/LatestStablePackages

wiki https://github.com/mrsunlin/LatestStablePackages/wiki

author https://www.facebook.com/mrsunlin

How to use

Requirement

  1. Linux/Unix/MacOS
  2. bash

Run

  1. Copy file latestStablePackages to nodejs project root directory which contain the file package.json
  2. execute the command in terminal at that path: bash latestStablePackages

Rebuilding packages

For the safe purpuse, rebuilding is NOT the default option. You can have rebuilding included by adding REBUILD option: bash latestStablePackages REBUILD

Drop back

The original package.json file is backed up in file package.json.backup

Enjoy!

About

This is a script to update Node.js project package definition to the latest STABLE versions in the package.json file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published