Skip to content

chore: exclude test directory from npm package#7

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

chore: exclude test directory from npm package#7
veksen wants to merge 1 commit intoWebReflection: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 test to the existing .npmignore to exclude it from the tarball, reducing the package size for all downstream users.

Before:

npm notice 459B test/index.js
npm notice 19B  test/package.json

After:
Test files no longer shipped.

The test/ directory is currently shipped to npm but is not needed
by consumers. Adding it to .npmignore reduces the package size.
.gitignore
.travis.yml
test
test.js
Copy link
Owner

Choose a reason for hiding this comment

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

I think this was old case and forgot to update it to test ... mind removing this line as there is no test.js in here anymore anyway? Thanks!

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