ghooks
ghooks copied to clipboard
fix: always run hooks as CommonJS
When installing hooks, add a package.json
with type: 'commonjs'
to …/.git/hooks/
to force the hooks to run as CommonJS, not modules, regardless of the type
set in the outer package.json
.
Fixes #394.
Hey there @brady-ds. Thanks for putting the effort! 🙏
It's been a while since I've done any maintenance in this repository. I'll do some clean up/bump up versions before bringing in/reviewing your changes. 👍