typicode / husky-4-to-8

Quickly migrate your hooks from husky v4 to husky@latest
MIT License
131 stars 20 forks source link

How can I specify the source of the .git folder? #11

Closed UmNiK7 closed 3 years ago

UmNiK7 commented 3 years ago

My .git folder is not in the same folder as the package.json. During installation - the husky does not find the .git folder and gives an error. Could you add an additional flag where I can specified my .git folder source.

The structure of my project:

    .git
    server
    client
        package.json
typicode commented 3 years ago

Hi @UmNiK7,

Personally, for this particular case, I'd do it manually and follow https://typicode.github.io/husky/#/?id=manual and https://typicode.github.io/husky/#/?id=custom-directory