tsconfig.json 567 B

1234567891011121314151617181920212223
  1. {
  2. "compilerOptions": {
  3. "target": "ES2020",
  4. "module": "CommonJS",
  5. "outDir": "./dist",
  6. "rootDir": "./",
  7. "strict": true,
  8. "esModuleInterop": true,
  9. "skipLibCheck": true,
  10. "forceConsistentCasingInFileNames": true,
  11. "allowJs": true,
  12. "checkJs": false,
  13. "resolveJsonModule": true // <-- 新增: 允许导入 .json 文件
  14. },
  15. "include": [
  16. "src/**/*.ts",
  17. "src/**/*.json",
  18. "services/**/*.ts",
  19. "services/**/*.js",
  20. "config/**/*.json" // <-- 新增: 确保 .json 文件被包含
  21. ],
  22. "exclude": ["node_modules"]
  23. }