-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix(config): better resolving of components on windows #1128
Conversation
Thanks for the PR! Could you please explain your solution? |
Absolutely, The diagnosis is simple: glob.sync("src/@{components,Components}/**/*.js") returns each component file twice on windows since it is case insensitive. It is probably a bug on glob. To avoid having to write the fix twice, I changed the code a little for it to be a little more DRY. I hope I did not mess too much with the philosophy. |
If I understand this correctly, it's case-insensitive on Windows in any case, so your fix is likely relying on some filtering they do when this flag is enabled. Probably we should report it to glob as well. |
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.
A few minor comments, otherwise looks good!
Codecov Report
|
@sapegin Thank you for the feedback. I think I will definitely send a Request to glob to understand better this behaviour. It seems shady. |
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.
Thanks, one last thing ;-)
Done ;) |
🎉 This PR is included in version 7.3.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.