Buckets:
37 GB
4,042,753 files
Updated about 1 month ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| README.md | 2 kB xet | e0aafaf3 | |
| jsr.json | 98 Bytes xet | 17d97b67 | |
| mod.ts | 418 Bytes xet | 5824578e | |
| mod_test.ts | 326 Bytes xet | bfda4732 | |
| zuke.json | 24 Bytes xet | e025340e | |
| zuke.ts | 3.12 kB xet | 68727f41 |
release-library
Where the real pain of a small library lives: the release. Build, test, bump, tag, push, GitHub release, changelog, publish — usually a shell script that grew ugly and that nobody dares to touch. Here it is as one chain of targets:
check ─▶ test ─▶ bump ─▶ tag ─▶ push ─▶ release ─▶ publish ─▶ default
zuke --release-version 1.1.0 # the whole release
zuke tag --release-version 1.1.0 # stop after the tag
zuke release --release-version 1.1.0 --dry-run # print the plan, run nothing
VERSION=1.1.0 zuke # the parameter from the env
What to notice in zuke.ts:
releaseVersionis aparameter(...).required(): a typed build input read from--release-versionorRELEASE_VERSION, resolved before anything runs. Its value is used inside the targets asthis.releaseVersion.value. It is not calledversion, because that would render as--version, which Zuke reserves for reporting its own version — a parameter that collides with a built-in flag is refused at discovery rather than quietly losing to it.- Each step is a typed wrapper that mirrors the real CLI:
GitTasks.add,.commit,.tag((s) => s.name("v1.1.0").message(...)),.push((s) => s.followTags()), thenGhTasks.releaseCreate((s) => s.tag("v1.1.0").generateNotes().latest())— the release notes are the merged pull requests since the last tag — andDenoTasks.publish()reads thejsr.jsonmanifest. - Because it is a chain, you can stop anywhere:
tagis a safe local dry run of everything up to the tag, and--dry-runprints the plan for any target. - Publishing to npm instead is
NpmTasks.publish()from@zuke/npm; a release-please flow is@zuke/release-please, which opens the release PR and cuts the GitHub release for you when it merges.
The library is mod.ts, one function with a test beside it.
- Total size
- 37 GB
- Files
- 4,042,753
- Last updated
- Oct 24
- Pre-warmed CDN
- US EU US EU