We are attempting to automate some of our versioning and build process for our Angular 2 applications. We would like to make use of
npm version
but are struggling with how to add an 'rc' to our package without having to manually specify the package name.
For example, lets say we have v1.0.0 and would like to go to v1.0.0-rc.1
We could use the below command and it would work fine.
npm version '1.0.0-rc.1'
The issue is we are trying to automate this and would prefer to not have to look at the current package name to get this.
Is there a command the basically says "grab the current package version, and add -rc.1 to it"?