kimi-code/tsconfig.json
liruifengv 86540ca2d7 feat(kimi-code): integrate vendored @moonshot-ai/pi-tui
Replace the npm @earendil-works/pi-tui dependency with the vendored @moonshot-ai/pi-tui workspace package so the fork can be modified locally.

- Point apps/kimi-code imports and native-deps at @moonshot-ai/pi-tui.

- Make pi-tui source-first (exports -> src, publishConfig.exports -> dist, mirroring node-sdk) and strict-clean: bracket access for process.env / named capture groups, an override modifier, and non-null assertions for noUncheckedIndexedAccess.

- Bump the root tsconfig target to ES2024 and enable allowImportingTsExtensions (needed for pi-tui's /v regex and .ts imports, which node --test requires).

- Add packages/pi-tui to flake.nix workspaces and exclude the vendored source from oxlint.
2026-06-29 21:21:36 +08:00

46 lines
1.1 KiB
JSON

{
"compilerOptions": {
"target": "ES2024",
"module": "preserve",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"lib": ["ES2023"],
"jsx": "react-jsx",
"jsxImportSource": "react",
"strict": true,
"isolatedModules": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": true,
"experimentalDecorators": true,
"declaration": true,
"sourceMap": true,
"noEmit": true,
"skipLibCheck": true,
"types": ["node"]
},
"include": [
"packages/*/src/**/*.ts",
"packages/*/src/**/*.tsx",
"packages/*/test/**/*.ts",
"packages/*/test/**/*.tsx",
"apps/*/src/**/*.ts",
"apps/*/src/**/*.tsx",
"apps/*/test/**/*.ts",
"apps/*/test/**/*.tsx"
],
"exclude": [
"node_modules",
"dist",
"coverage",
"packages/kosong/test/type-safety-negative.ts",
"**/*.disabled/**",
"**/*.disabled"
]
}