ghooks-org / ghooks

Simple git hooks
MIT License
1.08k stars 62 forks source link

fix: always run hooks as CommonJS #396

Open brady-ds opened 1 year ago

brady-ds commented 1 year ago

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.

gtramontina commented 1 year ago

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. 👍