zuke.tools.jsr
@zuke/jsr 1.0.2: @zuke/jsr — tools for the [JSR](https://jsr.io) registry in Zuke builds: typed JsrTasks wrappers for the jsr CLI (publish, add, remove), plus read-only registry queries to check which versions are already published.
zuke on PyPI ↗ 5 symbols
Symbols
class JsrAddSettings(JsrSettings) Settings for jsr add (install a JSR dependency).
-
packages(*specs: str) -> SelfPackage specs to add, e.g.
@std/assert(required). -
dev() -> SelfAdd as a development dependency (
--save-dev).
class JsrPublishSettings(JsrSettings) Settings for jsr publish.
-
dry_run() -> SelfValidate without publishing (
--dry-run). -
allow_slow_types() -> SelfPermit slow types in the published package (
--allow-slow-types). -
allow_dirty() -> SelfPublish even with an uncommitted working tree (
--allow-dirty). -
no_check() -> SelfSkip type-checking before publishing (
--no-check). -
provenance() -> SelfAttach provenance attestation in CI (
--provenance). -
token(value: str) -> SelfAuthenticate with a token instead of the interactive flow (
--token). Registered with the run's redactor, so every *rendering* of the command masks it — a dry-run echo, a failure message. That is as far as it goes:jsr publishaccepts the token only as a flag, so the value still reaches the child's argv, wherepsand/proc/<pid>/cmdlineexpose it to every other user on the host and to every process the build starts. There is no environment variable to move it to. On GitHub Actions, prefer OIDC and pass no token at all: the publish is authenticated by the workflow's identity, so there is no credential to expose. This is for the cases where that is not available.
class JsrRemoveSettings(JsrSettings) Settings for jsr remove.
-
packages(*names: str) -> SelfPackage names to remove (required).
class JsrSettings(ToolSettings) Base for all jsr subcommand settings: the binary is jsr.
class JsrTasks Typed task functions for the jsr CLI.
-
static async publish(ctx: ServiceContext, configure: Callable[[JsrPublishSettings], JsrPublishSettings] | None=None) -> ExecResultPublish the package:
jsr publish. -
static async add(ctx: ServiceContext, configure: Callable[[JsrAddSettings], JsrAddSettings] | None=None) -> ExecResultAdd a JSR dependency:
jsr add. -
static async remove(ctx: ServiceContext, configure: Callable[[JsrRemoveSettings], JsrRemoveSettings] | None=None) -> ExecResultRemove a dependency:
jsr remove.