提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
626 B

  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. ```