npm-bower-sync-ver
v2.0.0
Published
Simple Node.js CLI to synchronize the version property in package.json and bower.json using package.json as the source of truth.
Downloads
11
Maintainers
Readme
Npm Bower Sync Ver
Simple Node.js CLI to synchronize the version property in package.json and bower.json using package.json as the source of truth. Bower deprecated the use of the version property but it is still required by some artifact repositories like JFrog's Artifactory.
Setup
Install
npm i -D npm-bower-sync-ver
Then add the version line to your package.json scripts property object
"scripts": {
"version": "npm-bower-sync-ver && git add bower.json"
}
Usage
Now you can use npm to bump version and it will automatically update bower.json before the commit and tag.
npm version minor