chore: 提交和推送前增加前端 TypeScript 检查

与 Docker 构建的 tsc -b 对齐,避免类型错误在服务器构建才暴露。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-09-10 11:45:35 +08:00
co-authored by Cursor
parent c1f4e7c7ae
commit 874a95dd6f
7 changed files with 92 additions and 6 deletions
+5
View File
@@ -96,6 +96,11 @@ if [ "${1:-}" = "type-check" ]; then
exec uv run --group dev python -m pyright "$@"
fi
# 与 Docker 镜像构建第一步对齐:tsc -b。
if [ "${1:-}" = "frontend-check" ]; then
exec "$ROOT_DIR/.githooks/run-frontend-tsc.sh"
fi
BACKEND_PID=""
FRONTEND_PID=""
WORKER_PID=""