Git hooks made easy
The husky package for the Meteor framework. See Husky documentation for installation and usage instructions.
Husky automatically sets up git hooks that call npm run precommit
, npm run prepush
etc. so that git hooks call the scripts you've defined in your package.json
scripts. The Meteor framework maintains its own internal version of node
and npm
, so Husky needs to use the meteor npm
binary instead of the system's npm
binary so that it can find the required dependencies.