npm-publish-version-control
v1.0.2
Published
This script is used to update the version in the package.json and publish the package to npm
Maintainers
Readme
npm-publish-version-control
This is a simple script that will help you to update or sync the version of your package.json file before publishing it to npm.
Installation
npm install -g npm-publish-version-control
# or
yarn global add npm-publish-version-controlUsage
You should be in the root directory when using these scripts.
node sync.js # sync package.json version with current npm versionnode publish.js # patch update (1.0.0 -> 1.0.1)
node publish.js minor # minor update (1.0.0 -> 1.1.0)
node publish.js major # major update (1.0.0 -> 2.0.0)or
node publish.js # patch update (1.0.0 -> 1.0.1)
node publish.js 2 # minor update (1.0.0 -> 1.1.0)
node publish.js 3 # major update (1.0.0 -> 2.0.0)License
GNU General Public License v3.0
