Repository navigation
chore: Git ignores the package tarball that npm pack writes - #157
Merged
Merged
Conversation
Packing a release writes mercury-composable-<version>.tgz into the repository's root, where it stayed as an untracked file after the package was published. .gitignore lists *.tgz. The package's contents do not change: files in package.json decides them. CHANGELOG Unreleased, Changed 1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
acn-ericlaw
added a commit
that referenced
this pull request
Dec 1, 2026
… writes (#157, merged) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What
.gitignorelists*.tgz, the package tarball thatnpm packwrites.v4.12.31.Why
Packing a release writes
mercury-composable-<version>.tgzinto the repository's root. After 4.12.31 was published the tarball stayed there as an untracked file, so everygit statuslisted it and a broadgit addcould have committed it.How it was checked
git check-ignorenames the new line for the leftovermercury-composable-4.12.31.tgz, andgit statusno longer lists it.git ls-files '*.tgz'is empty), so the pattern hides nothing that belongs to the repository.filesinpackage.jsondecides them, and the root.gitignorealready listsdist/while the package shipsdist/src.npm testand the docs build. Neither reads.gitignoreorCHANGELOG.md; CI runs both.Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
🤖 Generated with Claude Code