From 5c8e3e38271805af20effc2b9dd45095449d8f0f Mon Sep 17 00:00:00 2001 From: YAYOI27 <3468086204@qq.com> Date: Sun, 24 Aug 2025 21:31:06 +0800 Subject: [PATCH] =?UTF-8?q?build(typescript):=20=E6=B7=BB=E5=8A=A0tsconfig?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=94=A8=E4=BA=8ETypeScrip?= =?UTF-8?q?t=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配置TypeScript编译选项,包括严格类型检查、模块解析路径等,为项目提供基础编译支持 --- typescript/tsconfig.json | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 typescript/tsconfig.json diff --git a/typescript/tsconfig.json b/typescript/tsconfig.json new file mode 100644 index 0000000..65354a2 --- /dev/null +++ b/typescript/tsconfig.json @@ -0,0 +1,41 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ES2020", + "lib": ["ES2020"], + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "removeComments": false, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noImplicitThis": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "moduleResolution": "node", + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + }, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "resolveJsonModule": true + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "dist", + "**/*.test.ts", + "**/*.spec.ts" + ] +} \ No newline at end of file