Skip to content

Comments

chore: exclude test directory from npm package#11

Open
veksen wants to merge 1 commit intotimoxley:masterfrom
veksen:exclude-tests-from-npm
Open

chore: exclude test directory from npm package#11
veksen wants to merge 1 commit intotimoxley:masterfrom
veksen:exclude-tests-from-npm

Conversation

@veksen
Copy link

@veksen veksen commented Feb 9, 2026

The test/ directory is currently included in the published npm package but is not needed by consumers.

This PR adds a .npmignore file to exclude test files from the tarball, reducing the package size for all downstream users.

Before:

npm notice 1.5kB test/index.js

After:
Test files no longer shipped.

The test/ directory is currently shipped to npm but is not needed
by consumers. Adding a .npmignore reduces the package size.
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