Skip to content

Commit a334b85

Browse files
modify: .pre-commit-config.yaml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e3defff commit a334b85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ repos:
1414
hooks:
1515
- id: lint-staged-and-test
1616
name: Lint Staged and Test
17-
entry: bash -c 'pnpm lint-staged && pnpm test'
17+
entry: bash -c '
18+
command -v pnpm >/dev/null 2>&1 || { echo "pnpm이 설치되어 있지 않습니다. 먼저 설치해주세요."; exit 1; }
19+
pnpm lint-staged || { echo "린트 검사 실패"; exit 1; }
20+
pnpm test || { echo "테스트 실패"; exit 1; }
21+
'
1822
language: system
1923
pass_filenames: false
2024
stages: [pre-commit]

0 commit comments

Comments
 (0)