npm-version-manager
Installation
npm i -g @armor/npm-version-manager
Usage
Without Args
npmvm
With Args
npmvm ./package.json --lib --site --quiet
You may optionally supply the path to the package.json
file you want to analyze. Additionally, you can use these flags:
--lib
Includes the lib.master.json
scripts and packages for comparison; use these if your project is a redistributable library
--site
Includes the site.master.json
scripts and packages for comparison; use these if your project is a site or application. If your project is both a library and a site, you can use both in combination.
--quiet
Suppresses the output of success messages.
Ignoring Divergent Scripts
Some projects will have unique scripts or customizations to existing scripts. You can suppress error messages (downgrade from an ERROR level to a WARN level) by including a .npmvmignore
file in the root of your project (or wherever you run npmvm). This file should be a newline delimited text file of all script keys you want to ignore.
Example .npmvmignore File
build
build:site:prod
postinstall
Updating
If newer versions of npmvm
are available, the last output of the script will let you know. Simply run npm i -g @armor/npm-version-manager
again to update to the latest version.