Zhouyiping 5a7c95461a first commit 3 天之前
..
__tests__ 5a7c95461a first commit 3 天之前
bin 5a7c95461a first commit 3 天之前
node_modules 5a7c95461a first commit 3 天之前
src 5a7c95461a first commit 3 天之前
CHANGELOG.md 5a7c95461a first commit 3 天之前
HOOKS.md 5a7c95461a first commit 3 天之前
LICENSE 5a7c95461a first commit 3 天之前
README.md 5a7c95461a first commit 3 天之前
appveyor.yml 5a7c95461a first commit 3 天之前
package.json 5a7c95461a first commit 3 天之前

README.md

yorkie

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"
    }
  }