tsconfig.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "$schema": "http://json.schemastore.org/tsconfig",
  3. "extends": "../../tsconfig.base.json",
  4. "compilerOptions": {
  5. "jsx": "preserve",
  6. "resolveJsonModule": true,
  7. "types": [
  8. "vitest/globals"
  9. ],
  10. "baseUrl": ".",
  11. "paths": {
  12. "~/*": ["./src/*"],
  13. "^/*": ["./*"],
  14. "debug": ["./src/server/utils/logger/alias-for-debug"]
  15. },
  16. /* TODO: remove below flags for strict checking */
  17. "strict": false,
  18. "strictNullChecks": true,
  19. "strictBindCallApply": true,
  20. "noImplicitAny": false,
  21. "noImplicitOverride": true,
  22. // Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
  23. "plugins": [
  24. // Transform paths in output .js files
  25. { "transform": "typescript-transform-paths" },
  26. // Transform paths in output .d.ts files (Include this line if you output declarations files)
  27. { "transform": "typescript-transform-paths", "afterDeclarations": true }
  28. ]
  29. },
  30. "include": [
  31. "next-env.d.ts",
  32. "config",
  33. "src"
  34. ],
  35. "ts-node": {
  36. "transpileOnly": true,
  37. "swc": true,
  38. "compilerOptions": {
  39. "module": "CommonJS",
  40. "moduleResolution": "Node"
  41. }
  42. }
  43. }