Skip to main content

latest

Bumps the `deno.json` version field using semver

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
3 weeks ago (1.0.1)

Bump

Bumps the deno.json "version" field using semver, then commit all files with the corresponding version tag, similar to npm version <major|minor|patch>

Usage

Add the following tasks to your deno.json:

{
  "task": {
    "bump": "deno run --allow-read --allow-write --allow-run jsr:@fcrozatier/bump",
    "publish": "deno publish && git push --follow-tags"
  }
}

Then to bump you're project's version run one of the following commands in the folder containing the deno.json config

deno task bump major
deno task bump minor
deno task bump patch

depending on the type of bump you want to make

Add Package

deno add jsr:@fcrozatier/bump

Import symbol

import * as bump from "@fcrozatier/bump";

---- OR ----

Import directly with a jsr specifier

import * as bump from "jsr:@fcrozatier/bump";

Add Package

npx jsr add @fcrozatier/bump

Import symbol

import * as bump from "@fcrozatier/bump";

Add Package

yarn dlx jsr add @fcrozatier/bump

Import symbol

import * as bump from "@fcrozatier/bump";

Add Package

pnpm dlx jsr add @fcrozatier/bump

Import symbol

import * as bump from "@fcrozatier/bump";

Add Package

bunx jsr add @fcrozatier/bump

Import symbol

import * as bump from "@fcrozatier/bump";