|
|
hace 2 semanas | |
|---|---|---|
| .. | ||
| __tests__ | hace 2 semanas | |
| bin | hace 2 semanas | |
| node_modules | hace 2 semanas | |
| src | hace 2 semanas | |
| CHANGELOG.md | hace 2 semanas | |
| HOOKS.md | hace 2 semanas | |
| LICENSE | hace 2 semanas | |
| README.md | hace 2 semanas | |
| appveyor.yml | hace 2 semanas | |
| package.json | hace 2 semanas | |
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"
}
}