update package.json version automatically

后端 未结 12 2058
长发绾君心
长发绾君心 2020-12-02 04:37

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.

Is there a way to edit the file package

12条回答
  •  情深已故
    2020-12-02 05:03

    As an addition to npm version you can use the --no-git-tag-version flag if you want a version bump but no tag or a new commit:

    npm --no-git-tag-version version patch
    

    https://docs.npmjs.com/cli/version

提交回复
热议问题