Skip to content

Keep the supercut bin through npm 11 publish - #16

Merged
Co-Messi merged 1 commit into
mainfrom
fix-npm11-bin
Oct 9, 2026
Merged

Co-Messi merged 1 commit into
mainfrom
fix-npm11-bin

Conversation

@Co-Messi

@Co-Messi Co-Messi commented Oct 9, 2026

Copy link
Copy Markdown
Owner

A publish dry run on npm 11.6.2 printed "bin[supercut]" script name dist/cli/index.js was invalid and removed: npm 11 drops a bin path written with a leading ./, so the published package would have had no supercut command and npx @co-messi/supercut would fail. CI runs npm 10, which keeps it, so the packed install smoke job passed.

Change Test
bin path is dist/cli/index.js (no ./) test/package-name.test.ts fails on the old value, passes on the new
CI runs npm@11.6.2 publish --dry-run and fails on any auto-correction the new step in packed-install-smoke; verified locally with no npm login

Verified locally on npm 11.6.2: the dry run is clean, and the packed tarball installs into an empty project where npx supercut --help runs.

npm 11 removes a bin entry whose path starts with ./ when it normalises
package.json at publish time, so the published package would have had no
supercut command. CI ran npm 10, which keeps it, so the packed install smoke
job passed. Use a plain relative path, pin it with a unit test, and add an
npm 11 publish dry run to CI that fails on any auto-correction.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T06:22:39.355091Z ece315e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Co-Messi
Co-Messi merged commit 4cc7b60 into main Oct 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant