Skip to content

chore: exclude test files and CI config from npm package - #42

Merged
southpolesteve merged 1 commit into
southpolesteve:masterfrom
veksen:exclude-tests-from-npm
Feb 11, 2026
Merged

southpolesteve merged 1 commit into
southpolesteve:masterfrom
veksen:exclude-tests-from-npm

Conversation

@veksen

@veksen veksen commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

The __tests__/ directory and .github/ workflows are currently included in the published npm package but are not needed by consumers.

This PR adds a .npmignore file to exclude them from the tarball, reducing the package size.

Before:

npm notice 1.5kB __tests__/abort-controller.js
npm notice 2.4kB __tests__/abort-signal.js
npm notice 565B  __tests__/browser.js
npm notice 886B  __tests__/node-fetch.js
npm notice 892B  __tests__/whatwg-fetch.js
npm notice 357B  .github/workflows/test.yml

After:
Test and CI files no longer shipped.

The __tests__/ directory and .github/ workflows are currently shipped to npm
but are not needed by consumers. Adding a .npmignore reduces the package size.
@southpolesteve
southpolesteve merged commit a0e10df into southpolesteve:master Feb 11, 2026
1 check 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.

2 participants