zz 65c8a28f48 项目初始化 1 vecka sedan
..
__tests__ 65c8a28f48 项目初始化 1 vecka sedan
bin 65c8a28f48 项目初始化 1 vecka sedan
node_modules 65c8a28f48 项目初始化 1 vecka sedan
src 65c8a28f48 项目初始化 1 vecka sedan
CHANGELOG.md 65c8a28f48 项目初始化 1 vecka sedan
HOOKS.md 65c8a28f48 项目初始化 1 vecka sedan
LICENSE 65c8a28f48 项目初始化 1 vecka sedan
README.md 65c8a28f48 项目初始化 1 vecka sedan
appveyor.yml 65c8a28f48 项目初始化 1 vecka sedan
package.json 65c8a28f48 项目初始化 1 vecka sedan

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