harb/.husky/pre-commit

20 lines
339 B
Text
Raw Normal View History

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
set -e
if [ -d "onchain" ]; then
(cd onchain && npx lint-staged)
fi
if [ -d "kraiken-lib" ]; then
(cd kraiken-lib && npx lint-staged)
fi
if [ -d "web-app" ]; then
(cd web-app && npx lint-staged)
fi
if [ -d "services/ponder" ]; then
(cd services/ponder && npx lint-staged)
fi