diff --git a/.husky/pre-commit b/.husky/pre-commit index 0bb94d1..3d31b43 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,9 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" +if [ -t 2 ]; then + exec >/dev/tty 2>&1 +fi + yarn test -yarn lint-staged && git add -A . +yarn lint-staged \ No newline at end of file