build(cli): add tsconfig and typescript dev dep for type-checking

The cli package had no tsconfig, so it was never type-checked under its own
config. Add a tsconfig (matching the other packages, minus JSX which cli does
not use) and the typescript dev dep so `tsc --noEmit` can run here — a
prerequisite for the upcoming check:type script.
This commit is contained in:
Yunfei He
2026-05-29 00:56:38 +08:00
parent b6e5313611
commit 0f60da7ec5
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@
},
"devDependencies": {
"@types/node": "catalog:",
"typescript": "^6.0.3",
"vite-plus": "catalog:"
}
}
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "esnext",
"lib": ["es2023"],
"moduleDetection": "force",
"module": "nodenext",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"types": ["node"],
"strict": true,
"noUnusedLocals": true,
"noEmit": true,
"allowImportingTsExtensions": true,
"esModuleInterop": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true
}
}
+3
View File
@@ -158,6 +158,9 @@ importers:
'@types/node':
specifier: 'catalog:'
version: 24.12.4
typescript:
specifier: ^6.0.3
version: 6.0.3
vite-plus:
specifier: 'catalog:'
version: 0.1.22(@types/node@24.12.4)(@voidzero-dev/vite-plus-core@0.1.22(@types/node@24.12.4)(esbuild@0.28.0)(tsx@4.22.3)(typescript@6.0.3))(esbuild@0.28.0)(tsx@4.22.3)(typescript@6.0.3)