-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
.npmignore and files are ignored in favor of .gitignore #2986
Comments
Yes, should not consider .gitignore if there is .npmignore/.yarnignre in place, seem to be kind of broken behaviour. |
Closing this one, since it's a dupe. |
For everyone who came here, because your directories with compiled js files were not published because they were in gitignore use this
|
@BjornMelgaard Thanks, I had to use |
@BjornMelgaard @korneel Thanks for leaving these notes here. I had to do this to make it work:
|
Do you want to request a feature or report a bug?
Bug
Dup #685 and #754 of just to draw attention because yarn publish command is unusable now.
What is the current behavior?
yarn pack looks in .gitignore to skip files even if .npmignore (not so matter caz npm specific) or
files
field are present.What is the expected behavior?
prefer
files
field over .gitignorePlease mention your node.js, yarn and operating system version.
yarn0.21.3, node6
The text was updated successfully, but these errors were encountered: