[Node] Prepare a package to be published to npm
作者:互联网
In package.json file:
"prepare": "npm run build", "postpublish": "git push --tags",
"prepare": make sure we don't forget to run build before publish the package
"postpublish": make sure after we publish the package, we also send tags to git
When we want to udpate the package version, we need to use "npm version [options]"
标签:Node,npm,git,prepare,package,make,postpublish,published 来源: https://www.cnblogs.com/Answer1215/p/12827695.html