From 05cf485004f8e25f46ddcc261f4dd49eaf42a38d Mon Sep 17 00:00:00 2001 From: Ioannis Tourkogiorgis Date: Fri, 8 Sep 2023 09:51:21 +0200 Subject: [PATCH] build: add svelte check in pre-commit hook --- .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