码迷,mamicode.com
首页 > 其他好文 > 详细

[Node] Prepare a package to be published to npm

时间:2020-05-04 19:24:31      阅读:49      评论:0      收藏:0      [点我收藏+]

标签:lis   style   uil   ack   org   push   tag   json   option   

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] Prepare a package to be published to npm

标签:lis   style   uil   ack   org   push   tag   json   option   

原文地址:https://www.cnblogs.com/Answer1215/p/12827695.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!