A small package to sync the package.json
version with the pom.xml
one (i.e. to be used with maven-release-plugin).
$ npm i --save sync-pom-version
In your package.json
:
{
"scripts": {
"postinstall": "sync-pom-version <path-to-pom>"
}
}
Or as a global package:
$ npm i -g sync-pom-version
$ sync-pom-version <path-to-pom> <path-to-package-json>