Skip to main content
Home

latest
Works with
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 Score94%
Downloads1/wk
Publisheda year ago (1.0.1)

Bumps the `deno.json` version field using semver

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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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

pnpm i jsr:@fcrozatier/bump
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fcrozatier/bump

Import symbol

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

Add Package

yarn add jsr:@fcrozatier/bump
or (using Yarn 4.8 or older)
yarn dlx jsr add @fcrozatier/bump

Import symbol

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

Add Package

vlt install jsr:@fcrozatier/bump

Import symbol

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

Add Package

npx 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";