-
Notifications
You must be signed in to change notification settings - Fork 63
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(hook): handle node module path os agnostically #114
fix(hook): handle node module path os agnostically #114
Conversation
Former `hook` name determination was a simple regex using *nix style path separator `/`, using `path.basename`, the required last part gets returned, independent of an os specific path separator.
Current coverage is 100%@@ master #114 diff @@
====================================
Files 4 4
Lines 121 118 -3
Methods 0 0
Messages 0 0
Branches 4 4
====================================
- Hits 121 118 -3
Misses 0 0
Partials 0 0
|
Should we investigate means to also automatically test on Windows environments? (AppVeyor comes to my mind, but atm I have no clue how we could get the semantic releases to also depend on successful builds on another service ...) |
Yes, this is needed. |
Yeah, probably should
We could create a Or we could just keep things as-is and rely on the pull request status checks. If the PR passes AppVeyor, then we'll assume that it'll pass when it merges into master. I think that'd be sufficient. I've tried AppVeyor once and failed to get it working. But I think it'd be great to have it working on this project. |
Sounds like a plan that should suffice. |
I agree with this second approach as it seems simpler to get working. If I remember correctly, we can set github up so it doesn't allow for merging PRs if some checks fail… BTW, thanks for addressing this issue right away!! |
Former
hook
name determination was a simple regex using *nix style path separator/
, usingpath.basename
, the required last part gets returned, independent of an os specific path separator.