function bump
bump(
manifestPath: string,
version: string
): Promise<BumpedEntry>

Points the manifest's qunitx-cli entry at version, keeping whatever range operator it already used: ^ stays ^, ~ stays ~, and an exact pin stays exact.

import * as Manifest from './manifest.ts';

// Defined, not invoked: rewrites a file on disk.
async function bumpProject() {
  return await Manifest.bump('/proj/deno.json', '0.35.0'); // { field: 'imports', range: '^0.35.0' }
}

Parameters

manifestPath: string
version: string

Return Type

Promise<BumpedEntry>

which part of the manifest changed, and the range now written there.

Usage

import { bump } from "lib/commands/upgrade/manifest.ts";