tsconfig.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "$schema": "http://json.schemastore.org/tsconfig",
  3. "extends": "../../tsconfig.base.json",
  4. "compilerOptions": {
  5. "module": "CommonJS",
  6. "moduleResolution": "Node",
  7. "baseUrl": ".",
  8. "paths": {
  9. "~/*": ["./src/*"],
  10. // force package to local node_modules since pnpm reads wrong hoisted tsed version used in pdf-converter (https://github.com/pnpm/pnpm/issues/7158)
  11. "@tsed/core": ["./node_modules/@tsed/core"],
  12. "@tsed/schema": ["./node_modules/@tsed/schema"],
  13. "@tsed/exceptions": ["./node_modules/@tsed/exceptions"],
  14. "@tsed/common": ["./node_modules/@tsed/common"],
  15. "@tsed/di": ["./node_modules/@tsed/di"],
  16. },
  17. /* TODO: remove below flags for strict checking */
  18. "strict": false,
  19. "strictNullChecks": true,
  20. "strictBindCallApply": true,
  21. "noImplicitAny": false,
  22. "noImplicitOverride": true,
  23. // Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
  24. "plugins": [
  25. // Transform paths in output .js files
  26. { "transform": "typescript-transform-paths" },
  27. // Transform paths in output .d.ts files (Include this line if you output declarations files)
  28. { "transform": "typescript-transform-paths", "afterDeclarations": true }
  29. ]
  30. },
  31. "include": [
  32. "src"
  33. ],
  34. "exclude": [
  35. "node_modules",
  36. "config",
  37. "dist",
  38. "src/public/**",
  39. "**/*.test.ts"
  40. ],
  41. "ts-node": {
  42. "transpileOnly": true,
  43. "swc": true
  44. }
  45. }