Skip to content

Commit 59b1c87

Browse files
committed
fix: lefthok 버전설정 수정
1 parent d4d72bd commit 59b1c87

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

lefthook.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
pre-commit:
22
commands:
33
lint-staged:
4-
run: /usr/local/bin/npm run lint-staged
4+
run: |
5+
[ -s "$HOME/.nvm/nvm.sh" ] && . "$HOME/.nvm/nvm.sh"
6+
npm run lint-staged
57
68
pre-push:
79
commands:
810
typecheck:
9-
run: /usr/local/bin/npm run typecheck
11+
run: |
12+
[ -s "$HOME/.nvm/nvm.sh" ] && . "$HOME/.nvm/nvm.sh"
13+
npm run typecheck
1014
1115
commit-msg:
1216
commands:
1317
commitlint:
14-
run: /usr/local/bin/npm run commitlint -- --edit {1}
18+
run: |
19+
[ -s "$HOME/.nvm/nvm.sh" ] && . "$HOME/.nvm/nvm.sh"
20+
npm run commitlint -- --edit {1}

0 commit comments

Comments
 (0)