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

[node/no-unpublished-require] .npmignore issue with * and ! #320

Open
karolis-sh opened this issue Jan 23, 2022 · 0 comments
Open

[node/no-unpublished-require] .npmignore issue with * and ! #320

karolis-sh opened this issue Jan 23, 2022 · 0 comments

Comments

@karolis-sh
Copy link

Hi, I have a common pattern of ignoring everything and unignoring only the files I want to be published in .npmignore:

*
!/lib/**/*

This pattern fails to include lib folder. It seems that * has issues.

Tested a few more cases, and this works:

/lib
!/lib

and this doesn't

/lib
!/lib/**/*

For now I'm using "files": ["lib"], in package.json

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

No branches or pull requests

1 participant