tomchen / example-typescript-package

Example TypeScript Package ready to be published on npm & Tutorial / Instruction / Workflow for 2021
MIT License
161 stars 32 forks source link

Can't commit with Husky installed #7

Open ghost opened 2 years ago

ghost commented 2 years ago

For some reason it would run my tests and everything would succeed, but the commit wouldn't happen. This is with a copy of the repository after I removed the .git directory and did 'git init' and committed an initial commit, then installed packages.

ghost commented 2 years ago

I removed the .husky directory and I could commit again.

doughlass commented 2 years ago

You likely need to give .husky/* the proper permissions.

chmod +x .husky/*

Like this