ghooks icon indicating copy to clipboard operation
ghooks copied to clipboard

fix: always run hooks as CommonJS

Open brady-ds opened this issue 1 year ago • 1 comments

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.

brady-ds avatar Apr 27 '23 02:04 brady-ds

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

gtramontina avatar May 08 '23 14:05 gtramontina