問題:
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