新增 TypeScript 配置文件,设置编译选项;更新依赖项并添加开发依赖

This commit is contained in:
2026-06-01 23:57:50 +08:00
parent ee85abd01a
commit b0df0c14b1
6 changed files with 620 additions and 10 deletions

44
tsconfig.json Normal file
View File

@@ -0,0 +1,44 @@
{
"compilerOptions": {
"resolvePackageJsonExports": true,
"isolatedModules": true,
"removeComments": true,
"allowSyntheticDefaultImports": true,
"module": "NodeNext",
"target": "esnext",
"useDefineForClassFields": false,
"noImplicitAny": false,
"sourceMap": true,
"allowJs": false,
"newLine": "LF",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleResolution": "NodeNext",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"strict": false,
"rootDir": ".",
"outDir": "dist",
"incremental": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
],
"paths": {
"~/*": [
"./src/*"
],
"@/*": [
"./agents/*"
],
"@/app.ts": [
"./agents/app.ts"
]
}
}
}