Skip to content

chore(package): exclude __tests__ from the published tarball#509

Merged
mrholek merged 1 commit into
mainfrom
chore/packaging-fixes
Jul 16, 2026
Merged

chore(package): exclude __tests__ from the published tarball#509
mrholek merged 1 commit into
mainfrom
chore/packaging-fixes

Conversation

@mrholek

@mrholek mrholek commented Jul 15, 2026

Copy link
Copy Markdown
Member

Packaging fix (from the July 2026 packaging audit, Top-5 #5)

The "src/" whitelist shipped ~250 test + snapshot files (__tests__/__snapshots__) with zero consumer value. Added "!src/**/__tests__" to files — drops them while keeping the source and source maps for consumers who want them.

Verified with npm pack --dry-run: 0 test files remaining, dist/ untouched (1176 dist files intact). All __snapshots__ live inside __tests__, so the single glob covers both.

Metadata-only change; no source touched.

The "src/" whitelist shipped ~250 test + snapshot files per package with
no consumer value. "!src/**/__tests__" drops them while keeping the source
and source maps. Verified via npm pack --dry-run: 0 test files remaining,
dist untouched.
@mrholek
mrholek merged commit 90fce49 into main Jul 16, 2026
3 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