2
0

tsconfig.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "$schema": "http://json.schemastore.org/tsconfig",
  3. "extends": "../../tsconfig.base.json",
  4. "compilerOptions": {
  5. "module": "CommonJS",
  6. "moduleResolution": "Node",
  7. "paths": {
  8. "~/*": ["./src/*"],
  9. // force package to local node_modules since pnpm reads wrong hoisted tsed version used in pdf-converter (https://github.com/pnpm/pnpm/issues/7158)
  10. "@tsed/core": ["./node_modules/@tsed/core"],
  11. "@tsed/schema": ["./node_modules/@tsed/schema"],
  12. "@tsed/exceptions": ["./node_modules/@tsed/exceptions"],
  13. "@tsed/common": ["./node_modules/@tsed/common"],
  14. "@tsed/di": ["./node_modules/@tsed/di"],
  15. "@tsed/logger": ["./node_modules/@tsed/logger"]
  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": ["src"],
  32. "exclude": [
  33. "node_modules",
  34. "config",
  35. "dist",
  36. "src/public/**",
  37. "**/*.test.ts"
  38. ],
  39. "ts-node": {
  40. "transpileOnly": true,
  41. "swc": true
  42. }
  43. }