Skip to content

Fix bin path so npm 12 keeps the npx entry point - #4

Merged
njb90 merged 1 commit into
mainfrom
fix-bin-path
Aug 4, 2026
Merged

Fix bin path so npm 12 keeps the npx entry point#4
njb90 merged 1 commit into
mainfrom
fix-bin-path

Conversation

@njb90

@njb90 njb90 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

The v0.1.0 publish attempt logged:

npm warn publish "bin[cloudinary-cloud]" script name dist/index.js was invalid and removed

npm 12's publish-time manifest fixer rejects the ./ prefix in bin paths and removes the bin entry from the registry manifest instead of normalizing it. A publish that succeeded with that manifest would ship a package where npx @cloudinary/cloud cannot find an executable. (The publish failed on permissions before this could land — fixing before retry.)

One-line change, matches npm pkg fix.

Test plan

  • npx npm@12.0.2 publish --dry-run — warning gone, bin preserved
  • npm test — 52/52
  • CI Package contents job re-validates shebang + --help/--version

🤖 Generated with Claude Code

npm 12's publish-time fixer treats "./dist/index.js" as invalid and
strips the bin entry from the registry manifest entirely, which would
break `npx @cloudinary/cloud`. Matches `npm pkg fix` output.
@njb90
njb90 merged commit 671864b into main Aug 4, 2026
4 checks passed
@njb90
njb90 deleted the fix-bin-path branch August 4, 2026 11:42
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