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: handle Windows style path in generateWildcardRequire #153
Conversation
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! It would be great to add a test for this so we can ensure we don't regress (I'll have to enable windows CI in the future)
I added a unit test for #154. I tried on my Windows machine and it passes after the fix 48d3692 (but fails before the fix, reproducing the bug). Actually running the tests on my machine caught another bug related to path separators. Edit: I've figured this one out. JSON.stringify(curPattern) escapes the
Let me know if you want the fix in this PR or a separate one.
|
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! Lets do a separate PR for the other fix since this one looks good 👍
🎉 This PR is included in version 1.7.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I added windows to CI in #155 but looks like there is more work to make it compatible |
Fixes #154