diff --git a/npm/ng-packs/README.md b/npm/ng-packs/README.md index b58a8dc117..213362a938 100644 --- a/npm/ng-packs/README.md +++ b/npm/ng-packs/README.md @@ -27,6 +27,7 @@ If would you like contribute, see the [contribution guideline](./CONTRIBUTING.md There is a pre-defined git hook for Angular project. This hook is `pre-commit`. The hook run prettier for staged files. If you want to use this hook. (This steps tested for linux and Mac os) - Go to `npm/ng-packs` - - Run `chmod +x ./pre-commit` + - Run `chmod +x ./pre-commit` in terminal + - Run `git config core.hooksPath npm/ng-packs` in terminal and now, when you create a git commit, git hook execute prettier for staged files. \ No newline at end of file