feat(scripts): add check:type running real tsc per package

Each package gets check:type = `tsc --noEmit` (under its own tsconfig); root
check:type = `vp run -r check:type` fans out across the workspace. Unlike vp's
tsgolint-based type-aware path, this is the standard TypeScript compiler, so it
honors each tsconfig's real project semantics.

Additive only here — vp lint still carries typeCheck; the switch-over and ready
rewiring land in the next commit. Note: testing and runtime-tests resolve
@vue-tui/runtime types from its built dist, so check:type requires a prior
build.
This commit is contained in:
Yunfei He
2026-05-29 00:57:36 +08:00
parent 0f60da7ec5
commit 1d6c47ca88
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@
"scripts": {
"build": "vp pack",
"dev": "vp pack --watch",
"check:type": "tsc --noEmit",
"prepublishOnly": "vp run build"
},
"dependencies": {
+1
View File
@@ -7,6 +7,7 @@
"test": "vp run test:integration && vp run test:pty",
"test:integration": "vp test",
"test:pty": "vp test run --config vitest.pty.config.ts --passWithNoTests",
"check:type": "tsc --noEmit",
"check:fixtures": "tsc -p integration/pty/fixtures/tsconfig.json --noEmit"
},
"devDependencies": {
+1
View File
@@ -19,6 +19,7 @@
"build": "vp pack",
"dev": "vp pack --watch",
"test": "vp test",
"check:type": "tsc --noEmit",
"prepublishOnly": "vp run build"
},
"dependencies": {
+1
View File
@@ -18,6 +18,7 @@
"build": "vp pack",
"dev": "vp pack --watch",
"test": "vp test",
"check:type": "tsc --noEmit",
"prepublishOnly": "vp run build"
},
"dependencies": {