There is a very convenient team npm version. In addition to arguments such as major, minorand patch, it accepts type arguments prerelease, prepatchetc.
The docs say that teams work according to function semver.inc.
These commands preI have a question.
Let's say I'm in version now v1.0.0.
If I run npm version prerelease, it will update the version to v1.0.1-0.
Is it possible to provide an additional attribute for the preliminary identifier in accordance with https://github.com/npm/node-semver#prerelease-identifiers ?
I would like something like to npm version prerelease alphauninstall the version before v1.0.1-alpha.0, but that doesn't work.
source
share