mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:01:08 +02:00
- Add clear error messages when pre-commit checks fail - Add clear error messages when pre-push builds fail - Explicitly warn against using --no-verify flag - Encourage developers to fix issues rather than bypass checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
811 B
Text
30 lines
811 B
Text
pnpm exec lint-staged || {
|
|
echo ""
|
|
echo "❌ Pre-commit checks failed!"
|
|
echo ""
|
|
echo "Please fix the formatting/linting issues above before committing."
|
|
echo "Do NOT use 'git commit --no-verify' to bypass these checks."
|
|
echo ""
|
|
exit 1
|
|
}
|
|
|
|
pnpm run type-check || {
|
|
echo ""
|
|
echo "❌ Type check failed!"
|
|
echo ""
|
|
echo "Please fix the TypeScript errors above before committing."
|
|
echo "Do NOT use 'git commit --no-verify' to bypass these checks."
|
|
echo ""
|
|
exit 1
|
|
}
|
|
|
|
# Run svelte-check on staged web apps (catches a11y, imports, Svelte 5 issues)
|
|
./scripts/svelte-check-staged.sh || {
|
|
echo ""
|
|
echo "❌ Svelte check failed!"
|
|
echo ""
|
|
echo "Please fix the Svelte errors above before committing."
|
|
echo "Do NOT use 'git commit --no-verify' to bypass these checks."
|
|
echo ""
|
|
exit 1
|
|
}
|