A command line utility for easily upgrading the outdated npm dependencies in your Node.js project.
Get it from npm registry upgrade-dependencies
- The utility supports by default Yarn and for NPM --npm='true' flag has to be specified.
The utility supports number of different ways to upgrade packages, you can specify the flag to determine what packages needs to be upgraded
Following are the number of ways packages can be upgraded
- Upgrade all packages
node node_modules/upgrade-dependencies/index.js
- List of packages
node node_modules/upgrade-dependencies/index.js --package="package1_name, package2_name"
- List of packages with version
node node_modules/upgrade-dependencies/index.js --package="[email protected], [email protected]"
- Type of dependency
node node_modules/upgrade-dependencies/index.js --type="devDependencies"
- Exclude list of packages
node node_modules/upgrade-dependencies/index.js --exclude="package1_name, package2_name"
- Specific flag (major, minor and patch)
node node_modules/upgrade-dependencies/index.js --category="major"
- Type of dependency and exclude list
node node_modules/upgrade-dependencies/index.js --type="dependencies" --exclude="package1_name"
- Supports npm with any other flag
-
node node_modules/upgrade-dependencies/index.js --package="package1_name" --npm=true
The report will be generated after upgrading the packages specifying what packages were upgraded to what version in upgradeReport.txt file.