62c3f25c9cd5fe63a3dcbdba5d586fe6fc80ca5406e8aa528ffe571dc23e010f64430f97db25e21fb95686b88336d3f22b91ae7eac7d4e09270fff52a3ea31 626 B

1234567891011121314151617181920212223242526272829
  1. # yorkie
  2. > Git hooks made easy
  3. This is a fork of [husky](https://github.com/typicode/husky) with a few changes:
  4. - 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.
  5. - Changed where hooks are read from in `package.json`:
  6. **Before**
  7. ``` json
  8. {
  9. "scripts": {
  10. "precommit": "foo"
  11. }
  12. }
  13. ```
  14. **After**
  15. ``` json
  16. {
  17. "gitHooks": {
  18. "pre-commit": "foo"
  19. }
  20. }
  21. ```