fix(hook): handle node module path os agnostically#114
fix(hook): handle node module path os agnostically#114kentcdodds merged 2 commits intoghooks-org:masterfrom
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
hookname 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.