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.
YZY eef3e25414
branch149
11 months ago
..
__tests__ branch149 11 months ago
bin branch149 11 months ago
node_modules branch149 11 months ago
src branch149 11 months ago
CHANGELOG.md branch149 11 months ago
HOOKS.md branch149 11 months ago
LICENSE branch149 11 months ago
README.md branch149 11 months ago
appveyor.yml branch149 11 months ago
package.json branch149 11 months ago

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