第4项:对页面、表单及两版共享规则启用严格类型检查

This commit is contained in:
黄健铭 committed 2026-12-05 08:01:17 -08:00
1 parent 389952f31c
commit f570929cfe
77 files changed
+7629 -2981

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ if [ "$WITH_NEXT" = 1 ]; then
LEDGER_REFERENCE_APP=$(node e2e/lib/write-reference.mjs "$reference_tmp") || exit 1
export LEDGER_REFERENCE_APP
# 已提交的 web/dist 必须与源码重新构建的结果一致(需先在 web/ 下 npm ci)。
run "新版严格类型与覆盖" npm --prefix web run typecheck
run "新版代码检查" npm --prefix web run lint
run "新版前端测试" npm --prefix web test
if [ -d "$APP/web/node_modules" ]; then
run "新版构建与提交一致(web/dist)" bash -c 'cd web && npx vite build --logLevel error && git diff --quiet --exit-code -- dist && test -z "$(git ls-files --others --exclude-standard -- dist)"'
fi