tsconfig.json 771 B

123456789101112131415161718
  1. {
  2. "compilerOptions": {
  3. "target": "es5", // 指定ECMAScript目标版本,这里设置为es5以支持旧版浏览器
  4. "module": "commonjs", // 指定模块代码生成方式
  5. "strict": true, // 启用所有严格类型检查选项
  6. "esModuleInterop": true, // 允许默认导入非ES模块
  7. "skipLibCheck": true, // 跳过所有声明文件的类型检查
  8. "forceConsistentCasingInFileNames": true, // 确保文件名大小写一致性
  9. "experimentalDecorators": true, // 启用对装饰器的实验性支持
  10. "emitDecoratorMetadata": true // 启用对装饰器元数据的实验性支持
  11. },
  12. "include": [
  13. "./tslearn/**/*" // 包含 src 目录下的所有文件
  14. ],
  15. "exclude": [
  16. "node_modules" // 排除 node_modules 目录
  17. ]
  18. }