Repository navigation
chore: use object form for package.json bin - #498
Merged
Merged
Conversation
Silences npm's misleading "script name ... was invalid and removed" publish warning; the published bin is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiGRtA44mDWPhGNex1cSia
erickzhao
approved these changes
Nov 12, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiGRtA44mDWPhGNex1cSia
erickzhao
marked this pull request as ready for review
November 12, 2026 19:03
MarshallOfSound
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Erick Zhao · Slack thread
npm 11 logs
"bin[asar]" script name bin/asar.mjs was invalid and removedon every publish because of a logging bug in@npmcli/package-json's bin normalization (https://github.com/npm/package-json/blob/main/lib/normalize.js#L65-L71) that fires for string-form or./-prefixed bins; nothing is actually removed. This switchesbinto the object formnpm pkg fixwrites ({"asar": "bin/asar.mjs"}), which silences the warning; the published bin is unchanged (verified withnpm publish --dry-runon npm 11.19.1, and it matches the registry manifest for 4.3.2).Generated by Claude Code