tsconfig.json 1.2 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/*": ["./src/components/*"],
  28. "@/utils": ["./src/utils/index.ts"],
  29. "@/sdk": ["./src/utils/sdk.ts"],
  30. "@/enum": ["src/utils/enum/index.ts"],
  31. "@/constant": ["./src/utils/constant.ts"],
  32. "@/package": ["./package.json"],
  33. "@/project": ["./project.config.json"],
  34. "@/service/*": ["./src/service/*"],
  35. "@/store/*": ["./src/store/*"],
  36. "@/assets/*": ["./src/assets/*"],
  37. "@/types": ["src/types/index.ts"],
  38. },
  39. },
  40. "exclude": [
  41. "node_modules",
  42. "dist"
  43. ],
  44. "compileOnSave": false
  45. }