Skip to content

chore: ship only dist/ in the npm tarball#29

Merged
ianalloway merged 1 commit into
mainfrom
chore/clean-npm-tarball
Jul 20, 2026
Merged

chore: ship only dist/ in the npm tarball#29
ianalloway merged 1 commit into
mainfrom
chore/clean-npm-tarball

Conversation

@ianalloway

Copy link
Copy Markdown
Owner

What

Adds "files": ["dist"] to package.json so npm publish ships a clean tarball.

Why

With no files field and no .npmignore, npm fell back to .gitignore and published the default set — the entire src/ (including the 47KB index.test.ts), tsconfig*.json, jest.config.js, scripts/, and .github/. None of that belongs in a consumer's node_modules.

Effect

npm pack --dry-run: 24 files → 7 (dist/ + README + LICENSE + package.json, which npm always includes). dist/ was already shipping, so this only drops cruft — no behavior change.

Verified: npm run build clean, 148 tests pass, tarball inspected.

🤖 Generated with Claude Code

Without a `files` field (and with no .npmignore), npm fell back to
.gitignore and published the default set — the full src/ including the
47KB test suite, tsconfig, jest config, scripts/, and .github/. A consumer
of @ianalloway/kelly-js has no use for any of it.

Add `"files": ["dist"]` so the published tarball is dist/ plus the files
npm always includes (README, LICENSE, package.json): 7 files instead of 24.
No behavior change; dist/ was already included, this just drops the cruft.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 20, 2026 15:08
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ianalloway
ianalloway merged commit e4196e7 into main Jul 20, 2026
4 checks passed
@ianalloway
ianalloway deleted the chore/clean-npm-tarball branch July 20, 2026 15:12
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.

2 participants