Skip to content

Commit

Permalink
Merge pull request #672 from aligent/fix/only-set-hooks-path-if-git-r…
Browse files Browse the repository at this point in the history
…epo-exists

fix: prepare script doesn't attempt to configure non-existing git repo
  • Loading branch information
tvhees authored Jul 19, 2023
2 parents bbfcb85 + aba4773 commit 827318c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format": "prettier --check .",
"format:fix": "prettier --write .",
"check-types": "tsc --pretty --noEmit",
"prepare": "git config core.hooksPath '.git-hooks'"
"prepare": "[ -d .git ] && git config core.hooksPath '.git-hooks' || true"
},
"devDependencies": {
"@aligent/serverless-conventions": "^0.4.0",
Expand Down

0 comments on commit 827318c

Please sign in to comment.