How to present assembly number in NPM version?

I would like to add the build number to my project in package.json. I am looking for a better way to do this.

I found that node-semem recognizes a string as an assembly number if it is preceded by a "+". For example, it will be a collection of '123'.

1.0.0 + 123

However, the NPM version module will also accept this format, but will override the build number in package.json. How should I represent the build number in package.json?

+4
source share
1 answer

+really is a way of representing assembly numbers. But having different builds of the same version does not make sense from the point of view of npm semver. Thus, removing the build number makes some sense.

, , - +. npm version prelease 1.0.0 1.0.0-0. npm version prerelease 1.0.0-1.

+5

All Articles