自動更新 package.json 版本 - update package.json version automatically

問題:

Before I do a small release and tag it, I'd like to update the package.json to reflect the new version of the program.在我做一個小版本並標記它之前,我想更新 package.json 以反映程序的新版本。

Is there a way to edit the file package.json automatically?有沒有辦法自動編輯文件package.json

Would using a git pre-release hook help?使用git pre-release hook會有幫助嗎?


解決方案:

參考一: https://stackoom.com/question/snV1
參考二: update package.json version automatically
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章