-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Move npmignore blacklist to package.json whitelist #636
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
Conversation
"files": [ | ||
"bin/", | ||
"lib/", | ||
"src/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why would we want src/
here, since it's non-compiled version of lib
.
This is an unfortunate tradeoff. If you want to still use the npm |
👍 Sounds good, lgtm otherwise. |
Actually, let's try removing the src directory and just see what breaks :) It might work. |
I am officially excited to see this pull request |
3596c04
to
f3286f9
Compare
@andrewimm updated the pull request. |
Move npmignore blacklist to package.json whitelist
Replaces blacklisting with whitelisting, to specify which files go up to npm to be installed by users.
This prevents
.babelrc
and other build configurations from being shipped to users, making it less likely that their build processes break (the RN packager in particular dislikes this).