diff --git a/.husky/pre-commit b/.husky/pre-commit index a717056b..ae9e0c44 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -10,9 +10,11 @@ npm test if command -v rg >/dev/null 2>&1; then if git diff --cached --name-only | rg -q '^docs/'; then npm run docs:validate-links + npm run docs:build fi else if git diff --cached --name-only | grep -Eq '^docs/'; then npm run docs:validate-links + npm run docs:build fi fi