tsconfig.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "compilerOptions": {
  3. "allowJs": true,
  4. "checkJs": false,
  5. "strict": true,
  6. "alwaysStrict": true,
  7. "target": "ES2021",
  8. "module": "commonJS",
  9. "moduleResolution": "node",
  10. "skipLibCheck": true,
  11. "lib": [
  12. "es2021",
  13. "ES2022.Error",
  14. "ES2022.Object",
  15. "esnext.disposable"
  16. ],
  17. // We don't make use of tslib helpers, all syntax used is supported by target engine
  18. "importHelpers": false,
  19. "noEmitHelpers": true,
  20. // Never emit error filled code
  21. "noEmitOnError": true,
  22. "outDir": "lib",
  23. // We want the sourcemaps in a separate file
  24. "inlineSourceMap": false,
  25. "sourceMap": true,
  26. // API-Extractor uses declaration maps to report problems in source, no need to distribute
  27. "declaration": true,
  28. "declarationMap": true,
  29. // we include sources in the release
  30. "inlineSources": false,
  31. // Prevents web types from being suggested by vscode.
  32. "types": [
  33. "node"
  34. ],
  35. "forceConsistentCasingInFileNames": true,
  36. "noImplicitOverride": true,
  37. "noImplicitReturns": true,
  38. // TODO(NODE-3659): Enable useUnknownInCatchVariables and add type assertions or remove unnecessary catch blocks
  39. "useUnknownInCatchVariables": false
  40. },
  41. "ts-node": {
  42. "transpileOnly": true,
  43. "compiler": "typescript-cached-transpile"
  44. },
  45. "include": [
  46. "src/**/*"
  47. ]
  48. }