npm: restore the blockflow command (runner 1.0.2), manual npm release run #15

Merged
akib merged 2 commits from akib/fix-npm-bin into main 2026-11-11 10:25:09 +00:00 AGit
Owner

Problem: [email protected] (published by the v1.0.1 release run) has no blockflow command. CI publishes with npm 11, which drops a bin path written as ./cli.mjs ("script name cli.mjs was invalid and removed"); npm 10, used for the 1.0.0 publishes, only rewrote it. bridge 1.0.0, mcp 1.0.0 and runner 1.0.0 are fine.

Changes

  • bin paths in all three packages are plain (cli.mjs, server.mjs). The new tests/bridge/packageBins.test.ts fails on ./ paths, missing files or a missing shebang. It failed before this fix.
  • blockflow-runner is now 1.0.2, with the same 1.0.1 extension bundled. Bridge and MCP keep their versions; their fix ships with their next bump.
  • release.yml gets a workflow_dispatch trigger: Actions → Release → Run workflow runs only the npm job, with npm run check first. A package fix therefore needs no new extension tag or AMO submission. It is the same workflow file, so the trusted publisher accepts it.
  • CHANGELOG and wiki Build-and-Release are updated.

Verified

  • npm run check: 1144 tests.
  • With npm 11.20 (Node 26):
    • no bin warning for any package;
    • the packed blockflow-runner-1.0.2.tgz has bin: {"blockflow":"cli.mjs"};
    • installing it in an empty folder gives a working blockflow --version → blockflow 1.0.2.

After merge: run Release by hand on main, then deprecate 1.0.1.

🤖 Generated with Claude Code

**Problem:** `[email protected]` (published by the v1.0.1 release run) has no `blockflow` command. CI publishes with npm 11, which drops a `bin` path written as `./cli.mjs` ("script name cli.mjs was invalid and removed"); npm 10, used for the 1.0.0 publishes, only rewrote it. bridge 1.0.0, mcp 1.0.0 and runner 1.0.0 are fine. **Changes** - `bin` paths in all three packages are plain (`cli.mjs`, `server.mjs`). The new `tests/bridge/packageBins.test.ts` fails on `./` paths, missing files or a missing shebang. It failed before this fix. - `blockflow-runner` is now **1.0.2**, with the same 1.0.1 extension bundled. Bridge and MCP keep their versions; their fix ships with their next bump. - `release.yml` gets a `workflow_dispatch` trigger: **Actions → Release → Run workflow** runs only the `npm` job, with `npm run check` first. A package fix therefore needs no new extension tag or AMO submission. It is the same workflow file, so the trusted publisher accepts it. - CHANGELOG and wiki Build-and-Release are updated. **Verified** - `npm run check`: 1144 tests. - With npm 11.20 (Node 26): - no bin warning for any package; - the packed `blockflow-runner-1.0.2.tgz` has `bin: {"blockflow":"cli.mjs"}`; - installing it in an empty folder gives a working `blockflow --version` → `blockflow 1.0.2`. **After merge:** run Release by hand on `main`, then deprecate 1.0.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- bin paths in bridge, mcp and cli are plain (cli.mjs); tests/bridge/packageBins.test.ts
  fails on ./ paths, missing files or a missing shebang.
- blockflow-runner 1.0.2 (1.0.1 has no blockflow command).
- release.yml: workflow_dispatch runs only the npm job (with npm run check), so a
  package fix needs no new extension version; same file for the trusted publisher.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
npm 11's 'script name cli.mjs was invalid and removed' warning did not remove the
command: installing [email protected] and npx from a fresh cache both run
'blockflow 1.0.1'. Reverts the 1.0.2 bump; the plain bin paths, their test and the
manual npm run stay. CHANGELOG, wiki and the test comment corrected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
akib merged commit 5e65af7de8 into main 2026-11-11 10:25:09 +00:00
akib referenced this pull request from a commit 2026-11-11 10:35:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
akib/blockflow!15
No description provided.