From 04abc304b402585bd61c99a46e784da80ee4e38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A2=85=EC=B0=AC?= Date: Wed, 23 Oct 2024 13:29:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A9=B9=20chore:=20husky=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b414a822..4dd9ead0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "rm -rf node_modules/.tmp && tsc -b --verbose", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "prepare": "husky", + "prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky install; fi", "lint-staged": "lint-staged", "test": "jest", "coverage": "jest --coverage" From 98745170266708eab889db0d73f9fb78edf44b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A2=85=EC=B0=AC?= Date: Wed, 23 Oct 2024 13:50:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A9=B9=20chore:=20husky=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4dd9ead0..e244ea40 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "rm -rf node_modules/.tmp && tsc -b --verbose", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky install; fi", + "prepare": "if [ -d .git ] && command -v husky >/dev/null 2>&1; then husky install; else echo 'Skipping husky install'; fi", "lint-staged": "lint-staged", "test": "jest", "coverage": "jest --coverage"