tsconfig.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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": ["src"],
  33. "exclude": [
  34. "node_modules",
  35. "config",
  36. "dist",
  37. "src/public/**",
  38. "**/*.test.ts"
  39. ],
  40. "ts-node": {
  41. "transpileOnly": true,
  42. "swc": true
  43. }
  44. }