Skip to content

fix(cli): canonical bin path so npm keeps the command on publish - #15

Merged
luke-speechify merged 1 commit into
mainfrom
fix/bin-canonical-path
Aug 31, 2026
Merged

fix(cli): canonical bin path so npm keeps the command on publish#15
luke-speechify merged 1 commit into
mainfrom
fix/bin-canonical-path

Conversation

@luke-speechify

Copy link
Copy Markdown
Contributor

The npm publish dry-run for the first release warned:

npm warn publish "bin[speechify]" script name dist/bin.js was invalid and removed

npm's publish-time manifest normalization strips a bin value with a leading ./, so the served packument would list no speechify command. (The tarball itself kept bin, so a direct tarball install still linked — but the registry manifest is wrong.)

Fix: use the canonical "dist/bin.js" (no ./). Verified: dry-run publishes with no warning, tarball installs and speechify --version runs. Needed before the first 0.0.1 publish.

…lish)

npm's publish-time manifest normalization strips a bin value with a leading
"./" ("bin[speechify] script name dist/bin.js was invalid and removed"),
which would serve a packument with no `speechify` command. "dist/bin.js"
is the canonical form and publishes clean.
@luke-speechify
luke-speechify merged commit 8146364 into main Aug 31, 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