npm version management command

npm using semver Specification version management scheme as a dependency. semver agree on a package version number must contain 3 digits

MAJOR.MINOR.PATCH meaning is 主版本号.小版本号.修订版本号

  • To update MAJOR MAJOR version number corresponding to a large number of iterations version, do not compatible with older versions of modified
  • MINOR corresponding to the small version of iterations compatible occur when the Legacy API function to modify or update, update version number MINOR
  • PATCH corresponding to the revision number, for general repair BUG version number


When every time we release package will need to upgrade the version number:

npm version major # 1 plus the major version number, the version number of the remaining return 0 
npm Version # Minor minor version number plus 1, revision numbers go 0 
npm Version Patch # revision number plus 1

 

Guess you like

Origin www.cnblogs.com/mengfangui/p/11463177.html