Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Ignore the __tests__ directory when publishing to npm #324

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

gawrysiak
Copy link
Collaborator

Ignore the tests directory when publishing to npm. It wasn't possible to place the .npmignore file in the main directory due to a known npm issue - it seems like the .npmignore entries won't affect directories listed within the package.json "files" list. The workaround was to place the .npmignore file in a subdirectory.

Motivation

Fixes #320.

Test plan

Go to the project dir and run npm pack. You'll get a package and see the files were not included.

@callstack-bot
Copy link

Hey @gawrysiak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@satya164 satya164 merged commit 851d998 into callstack:master Apr 18, 2018
@satya164
Copy link
Member

Thank you for the PR!

@gawrysiak gawrysiak deleted the chore/tests-on-publish branch April 18, 2018 08:45
eriveltonelias pushed a commit to eriveltonelias/react-native-paper that referenced this pull request Sep 21, 2018
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.

3 participants