From aba47733f2f323915ee40e46d87cb5e9b7a93af4 Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Wed, 19 Jul 2023 11:42:58 +0930 Subject: [PATCH] fix: prepare script doesn't attempt to configure non-existing git repo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e5a9a4eb..fc17bfce 100644 --- a/package.json +++ b/package.json @@ -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",