Commit 148e898
committed
fix(cli): restore a publishable manifest and a real
The compiler shim has been unpublishable and uninstallable-as-a-CLI. Two gaps,
both fixed here.
1. NO MANIFEST. `packages/affinescript-cli/` ships mod.js, pins.js, mod_test.js
and mod.d.affine but has no package.json, jsr.json or deno.json - and git
history shows one was never committed. The shim is live on JSR as
@hyperpolymath/affinescript 0.1.2, so it was published from an untracked
manifest and cannot be republished from a clean checkout. pins.js even
instructs the maintainer to "bump THIS package's deno.json version in
lockstep" with a file that is not in the tree.
2. NO `bin`. NOTHING in this repository declares a `bin` field, so nothing
installs as an `affinescript` command. mod.js self-executes when it is the
entry module but carries no hashbang, so it cannot be a `bin` target on
Unix. bin/affinescript.js adds the hashbang and delegates to mod.js's
exported run(); no behaviour moves.
VERIFIED, not assumed: `bun bin/affinescript.js --version` and
`node bin/affinescript.js --version` both resolve the pinned binary, verify its
checksum, exec it, and print a version.
package.json (not deno.json) because Deno is being removed estate-wide per the
2026-08-26 owner ruling; the manifest is npm-compatible so Bun, npm and Node all
consume it. Version 0.1.2 matches what is already on JSR - same code, same
version, two registries.
FOUND WHILE TESTING, not fixed here: the shim resolves the v0.1.1 release
binary, but that binary self-reports 0.1.0, while dune-project and lib/version.ml
say 0.1.1. The v0.1.1 release was cut before the version bump landed. Flagged
rather than silently re-pinned.
STILL OPEN, needs a new tag: v0.2.0 has ZERO release assets. Root cause is in the
logs - "HTTP 422: Cannot upload assets to an immutable release": the release was
published before the build legs uploaded. release.yml has ALREADY been fixed for
this (create as draft, upload, publish last, sealing atomically) but that fix has
never been exercised. v0.2.0 is immutable and cannot be repaired retroactively;
it needs a fresh tag to run the corrected workflow.bin entry point1 parent 62757ba commit 148e898
2 files changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments