Skip to content

Commit

Permalink
fix: husky config (#2661)
Browse files Browse the repository at this point in the history
## What's the purpose of this pull request?
The husky is not working properly

In Husky, adding the `prepare` script in your package.json is necessary
because it ensures that Husky installs its Git hooks correctly after
running npm install or yarn install.

https://typicode.github.io/husky/get-started.html
typicode/husky#1016


## How to test it?

- Change a file 
- `git add .`
- `git commit`
You should see the husky working
  • Loading branch information
pedromtec authored Jan 31, 2025
1 parent 1ecd7a7 commit 38ffbaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test": "turbo run test",
"size": "turbo run size",
"release": "lerna version --conventional-commits --yes && lerna publish from-git --yes",
"clean": "turbo run clean && rm -rf node_modules"
"clean": "turbo run clean && rm -rf node_modules",
"prepare": "husky"
},
"workspaces": [
"packages/*",
Expand Down

0 comments on commit 38ffbaf

Please sign in to comment.