This is my personal tool for versioning Deno projects. You might find it useful as well.
$ deno install --allow-read --allow-write --allow-run -n bump https://denopkg.com/iamnathanj/bump@v2.2.0/cli.tsAdd a project.json to the root of your project:
{
"name": "your-deno-module", // required
"version": "0.0.0", // required
"replaceVersion": [ // optional
"README.md"
],
"signGitTag": true // optional
}Run bump in the root of your project:
$ bump majorThis will:
- bump the version in your
project.json - replace version strings in the files specified by
project.json#replaceVersion - create a git commit with the new changes
- create a git tag for the new version
Make sure to git push --follow-tags to push the changes to your remote.
majorminorpatch
Please do open an issue or PR if you feel you have something valuable to add.