tsconfig.json 1.3 KB

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