compass-examples icon indicating copy to clipboard operation
compass-examples copied to clipboard

Fix git hook error after dependency installation

Open RiccardoBiosas opened this issue 1 year ago • 1 comments

Husky is currently set to run in a nested directory that is not at the same level as the .git directory. it's a known error (see here and here) and it was causing the installation process to terminate with Exit status 1 as in the below logs:

> husky install

.git can't be found (see https://git.io/Jc3F9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare: `husky install`
npm ERR! Exit status 1

This PR fixes the issue by running the prepare command from the same level as the .git directory

RiccardoBiosas avatar May 22 '24 03:05 RiccardoBiosas

Hooray! All contributors have signed the CLA.

atlassian-cla-bot[bot] avatar May 22 '24 03:05 atlassian-cla-bot[bot]