refactor: move type-checking from vp lint to tsc-based check:type

Set lint.options.typeCheck=false so vp lint/check no longer runs the
tsgolint full type-check (typeAware stays on, keeping type-aware lint rules).
Type-checking is now owned by check:type, which runs the real tsc and honors
each tsconfig's project semantics — unlike tsgolint, which ignored tsconfig
exclude/nested configs.

Wire check:type into ready after build (it needs the built dist for
cross-package type resolution): fmt, lint, build, check:type, check:fixtures,
test.

Verified: with typeCheck off, vp lint no longer reports a TS2322 type error
(but keeps its type-aware warnings); check:type catches it via tsc.
This commit is contained in:
Yunfei He
2026-05-29 00:58:14 +08:00
parent 1d6c47ca88
commit 40d89bdf47
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"check:fixtures": "vp run -r check:fixtures",
"test": "vp run -r test",
"build": "vp run -r build",
"ready": "vp run check:fmt && vp run check:lint && vp run build && vp run check:fixtures && vp run test",
"ready": "vp run check:fmt && vp run check:lint && vp run build && vp run check:type && vp run check:fixtures && vp run test",
"prepare": "vp config"
},
"devDependencies": {