tsconfig.json 915 Bytes
{
  "compilerOptions": {
    "target": "ESNext",
    "useDefineForClassFields": true,
    "lib": ["DOM", "DOM.Iterable", "ESNext"],
    "allowJs": false,
    "skipLibCheck": true,
    "esModuleInterop": false,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "react-jsx",
    "allowSyntheticDefaultImports": true,
    "paths": {
      "@/hr/*": ["./packages/hr/*"],
      "@/hro/*": ["./packages/hro/*"],
      "@/utils/*": ["./utils/*"],
      "@/services/*": ["./services/*"]
    },
    "declaration": true, // 自动生成声明文件
    "declarationDir": "./", // 声明文件生成的目录
    "noEmitOnError": false
  },
  "include": ["packages", "index.tsx", "typings.d.ts"],
  "exclude": ["node_modules"],
  "references": [{ "path": "./tsconfig.node.json" }]
}