Back in April we updated Husky from v3 to v8 due to Dependabot.
This broke our workflow: the git commit hook is no longer installed on a fresh clone with npm install, so we no longer run lint on commit.
Latest Husky requires manually installing hooks with npx husky install.
They recommend that the prepare script can be used to automate this for npm install. But then it runs at random other times like any time the package is being packed, f.e. during publish.
We can, however, make npx husky install be optional: the contributing guide can recommend it as a convenience for pre-pull-request time saving. I like making it opt-in, and those who don't want it can rely on pull request builds or running command manually. Wdyt?
Back in April we updated Husky from v3 to v8 due to Dependabot.
This broke our workflow: the git commit hook is no longer installed on a fresh clone with
npm install, so we no longer run lint on commit.Latest Husky requires manually installing hooks with
npx husky install.They recommend that the
preparescript can be used to automate this fornpm install. But then it runs at random other times like any time the package is being packed, f.e. during publish.We can, however, make
npx husky installbe optional: the contributing guide can recommend it as a convenience for pre-pull-request time saving. I like making it opt-in, and those who don't want it can rely on pull request builds or running command manually. Wdyt?