2
0

tsconfig.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. "@tsed/logger": ["./node_modules/@tsed/logger"],
  17. },
  18. /* TODO: remove below flags for strict checking */
  19. "strict": false,
  20. "strictNullChecks": true,
  21. "strictBindCallApply": true,
  22. "noImplicitAny": false,
  23. "noImplicitOverride": true,
  24. // Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
  25. "plugins": [
  26. // Transform paths in output .js files
  27. { "transform": "typescript-transform-paths" },
  28. // Transform paths in output .d.ts files (Include this line if you output declarations files)
  29. { "transform": "typescript-transform-paths", "afterDeclarations": true }
  30. ]
  31. },
  32. "include": [
  33. "src"
  34. ],
  35. "exclude": [
  36. "node_modules",
  37. "config",
  38. "dist",
  39. "src/public/**",
  40. "**/*.test.ts"
  41. ],
  42. "ts-node": {
  43. "transpileOnly": true,
  44. "swc": true
  45. }
  46. }