Skip to content

Commit 9874517

Browse files
committed
🩹 chore: husky 설치 스크립트 수정
1 parent 04abc30 commit 9874517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "rm -rf node_modules/.tmp && tsc -b --verbose",
1313
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1414
"preview": "vite preview",
15-
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky install; fi",
15+
"prepare": "if [ -d .git ] && command -v husky >/dev/null 2>&1; then husky install; else echo 'Skipping husky install'; fi",
1616
"lint-staged": "lint-staged",
1717
"test": "jest",
1818
"coverage": "jest --coverage"

0 commit comments

Comments
 (0)