Jsr provider
The JsrProvider upgrades a cli published as a jsr package.
Set the full package name, or a scope plus an optional name that defaults
to the cli name.
import { JsrProvider } from "@cliffy/upgrade/provider/jsr";
const provider = new JsrProvider({ package: "@my-scope/my-cli" });
The scope is written without the leading @, and name can be left out when
the package is named after the cli.
import { JsrProvider } from "@cliffy/upgrade/provider/jsr";
const provider = new JsrProvider({ scope: "my-scope", name: "my-cli" });
iNOTE
When upgrading to
latest, theJsrProviderlets the runtime resolve the concrete version instead of pinning it. This way a configured minimum dependency age policy is respected (minimumDependencyAgein Deno,min-release-agein npm/pnpm/bun): the upgrade installs the newest version allowed by the policy rather than the absolute latest.