Skip to content

chore: Git ignores the package tarball that npm pack writes - #157

Merged
acn-ericlaw merged 1 commit into
mainfrom
chore/ignore-npm-pack-tarball
Dec 1, 2026
Merged

acn-ericlaw merged 1 commit into
mainfrom
chore/ignore-npm-pack-tarball

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Contributor

What

  • .gitignore lists *.tgz, the package tarball that npm pack writes.
  • CHANGELOG: Unreleased, Changed 1. The released sections are identical to tag v4.12.31.

Why

Packing a release writes mercury-composable-<version>.tgz into the repository's root. After 4.12.31 was published the tarball stayed there as an untracked file, so every git status listed it and a broad git add could have committed it.

How it was checked

  • git check-ignore names the new line for the leftover mercury-composable-4.12.31.tgz, and git status no longer lists it.
  • No tarball is tracked (git ls-files '*.tgz' is empty), so the pattern hides nothing that belongs to the repository.
  • The package's contents do not change: files in package.json decides them, and the root .gitignore already lists dist/ while the package ships dist/src.
  • Not run locally: npm test and the docs build. Neither reads .gitignore or CHANGELOG.md; CI runs both.

Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com

🤖 Generated with Claude Code

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
acn-ericlaw merged commit 4ca1ca3 into main Dec 1, 2026
5 checks passed
@acn-ericlaw
acn-ericlaw deleted the chore/ignore-npm-pack-tarball branch December 1, 2026 17:44
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>
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