1. yorkie
githooks management forked from husky
yorkie
Package: yorkie
Created by: yyx990803
Last modified: Wed, 25 May 2022 07:06:53 GMT
Version: 2.0.0
License: MIT
Downloads: 2,365,060
Repository: https://github.com/yyx990803/yorkie

Install

npm install yorkie
yarn add yorkie

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code