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

Exclude node_modules and .git subpaths from minimatch input string #633

Merged
merged 1 commit into from
Mar 19, 2022

Conversation

revelt
Copy link
Contributor

@revelt revelt commented Feb 10, 2022

Currently, np is failing to publish packages which have deep-enough node_modules tree.

Screenshot 2022-02-10 at 20 06 43

It's because allowList and globString end up with thousands of paths, which overwhelm the minimatch whose input string-matcher length has to be maximum 1024*64=65K characters. I logged allowList just before it caused problem and it was around 450K characters!!!

This PR excludes node_modules and .git/* from minimatch inputs, because npm automatically excludes these paths.


Fixes #634
Closes #635

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.

Error "pattern is too long"
2 participants