caoge c760052ff9 机车状态修改 | hai 8 meses | |
---|---|---|
.. | ||
__tests__ | hai 8 meses | |
bin | hai 8 meses | |
node_modules | hai 8 meses | |
src | hai 8 meses | |
CHANGELOG.md | hai 8 meses | |
HOOKS.md | hai 8 meses | |
LICENSE | hai 8 meses | |
README.md | hai 8 meses | |
appveyor.yml | hai 8 meses | |
package.json | hai 8 meses |
Git hooks made easy
This is a fork of husky with a few changes:
Prioritizes package.json
located next to .git
directory, instead of hard-coded upward search. This avoids the problem when a root package in a lerna monorepo and a sub package both depends on husky, it gets confused and double-updates the root git hooks with wrong paths.
Changed where hooks are read from in package.json
:
Before
{
"scripts": {
"precommit": "foo"
}
}
After
{
"gitHooks": {
"pre-commit": "foo"
}
}