deepsea ca9f471156 first commit 1 年之前
..
__tests__ ca9f471156 first commit 1 年之前
bin ca9f471156 first commit 1 年之前
node_modules ca9f471156 first commit 1 年之前
src ca9f471156 first commit 1 年之前
CHANGELOG.md ca9f471156 first commit 1 年之前
HOOKS.md ca9f471156 first commit 1 年之前
LICENSE ca9f471156 first commit 1 年之前
README.md ca9f471156 first commit 1 年之前
appveyor.yml ca9f471156 first commit 1 年之前
package.json ca9f471156 first commit 1 年之前

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