mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
🔧 chore: add svelte-check to pre-commit hooks
Add automatic svelte-check validation for staged Svelte files: - Create svelte-check-staged.sh that runs on affected web apps only - Create build-check-staged.sh for production build validation - Integrate svelte-check into pre-commit hook - Add optional pre-push hook for full build checks - Update lint-staged config to handle Svelte files separately
This commit is contained in:
parent
9238ff72a3
commit
b949037fa5
6 changed files with 195 additions and 1 deletions
|
|
@ -1,2 +1,5 @@
|
|||
pnpm exec lint-staged
|
||||
pnpm run type-check
|
||||
|
||||
# Run svelte-check on staged web apps (catches a11y, imports, Svelte 5 issues)
|
||||
./scripts/svelte-check-staged.sh
|
||||
|
|
|
|||
3
.husky/pre-push
Executable file
3
.husky/pre-push
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
# Optional: Run production build check before push
|
||||
# Uncomment to enable (slower but catches all CI issues)
|
||||
# ./scripts/build-check-staged.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue