From c170c4e3bd22ae1494b17ecdbd47d7b8ba2fbdc3 Mon Sep 17 00:00:00 2001 From: Ioannis <6360154+jtourkos@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:05:25 +0200 Subject: [PATCH] build: add svelte check in pre-commit hook (#665) --- .husky/pre-commit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index c8fec63e2..1a9277dd1 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,8 @@ . "$(dirname -- "$0")/_/husky.sh" npx lint-staged --concurrent false + +if ! npm run check; then + echo "check script failed" + exit 1 +fi