tsconfig.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "compilerOptions": {
  3. "target": "es2017",
  4. "module": "commonjs",
  5. "removeComments": false,
  6. "preserveConstEnums": true,
  7. "moduleResolution": "node",
  8. "experimentalDecorators": true,
  9. "noImplicitAny": false,
  10. "allowSyntheticDefaultImports": true,
  11. "outDir": "lib",
  12. "noUnusedLocals": true,
  13. "noUnusedParameters": true,
  14. "strictNullChecks": true,
  15. "sourceMap": true,
  16. "baseUrl": ".",
  17. "rootDir": ".",
  18. "jsx": "preserve",
  19. "jsxFactory": "Taro.createElement",
  20. "allowJs": true,
  21. "resolveJsonModule": true,
  22. "typeRoots": [
  23. "node_modules/@types",
  24. "global.d.ts"
  25. ],
  26. "paths": {
  27. "@/components/*": ["./client/src/components/*"],
  28. "@/utils": ["./client/src/utils/index.ts"],
  29. "@/sdk": ["./client/src/utils/sdk.ts"],
  30. "@/enum": ["/client/src/utils/enum/index.ts"],
  31. "@/constant": ["./client/src/utils/constant.ts"],
  32. "@/package": ["./client/package.json"],
  33. "@/project": ["./client/project.config.json"],
  34. "@/service/*": ["./client/src/service/*"],
  35. "@/store/*": ["./client/src/store/*"],
  36. "@/assets/*": ["./client/src/assets/*"],
  37. "@/types/*": ["./client/src/types/*"],
  38. },
  39. },
  40. "exclude": [
  41. "node_modules",
  42. "dist"
  43. ],
  44. "compileOnSave": false
  45. }