function registry
registry(manifestPath: string): Promise<"npm" | "jsr">

Which registry a deno manifest pins qunitx-cli through, so a refusal names the deno add that updates the entry already there instead of adding a second one beside it. npm when the file says nothing, matching what deno add qunitx-cli resolves to.

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

// Defined, not invoked: reads a file from disk.
async function pinnedThrough() {
  return await Manifest.registry('/proj/deno.json'); // 'jsr' when the import says jsr:
}

Parameters

manifestPath: string

Return Type

Promise<"npm" | "jsr">

Usage

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