tsconfig.schema.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "$ref": "#/definitions/TsConfigSchema",
  3. "$schema": "http://json-schema.org/draft-07/schema#",
  4. "definitions": {
  5. "TsConfigOptions": {
  6. "description": "Must be an interface to support `typescript-json-schema`.",
  7. "properties": {
  8. "compiler": {
  9. "default": "typescript",
  10. "description": "Specify a custom TypeScript compiler.",
  11. "type": "string"
  12. },
  13. "compilerHost": {
  14. "default": false,
  15. "description": "Use TypeScript's compiler host API.",
  16. "type": "boolean"
  17. },
  18. "compilerOptions": {
  19. "additionalProperties": true,
  20. "allOf": [
  21. {
  22. "$ref": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json#definitions/compilerOptionsDefinition/properties/compilerOptions"
  23. }
  24. ],
  25. "description": "JSON object to merge with compiler options.",
  26. "properties": {
  27. },
  28. "type": "object"
  29. },
  30. "emit": {
  31. "default": false,
  32. "description": "Emit output files into `.ts-node` directory.",
  33. "type": "boolean"
  34. },
  35. "experimentalEsmLoader": {
  36. "description": "True if require() hooks should interop with experimental ESM loader.\nEnabled explicitly via a flag since it is a breaking change.",
  37. "type": "boolean"
  38. },
  39. "files": {
  40. "default": false,
  41. "description": "Load files from `tsconfig.json` on startup.",
  42. "type": "boolean"
  43. },
  44. "ignore": {
  45. "default": "/node_modules/",
  46. "description": "Override the path patterns to skip compilation.",
  47. "items": {
  48. "type": "string"
  49. },
  50. "type": "array"
  51. },
  52. "ignoreDiagnostics": {
  53. "description": "Ignore TypeScript warnings by diagnostic code.",
  54. "items": {
  55. "type": [
  56. "string",
  57. "number"
  58. ]
  59. },
  60. "type": "array"
  61. },
  62. "logError": {
  63. "default": false,
  64. "description": "Logs TypeScript errors to stderr instead of throwing exceptions.",
  65. "type": "boolean"
  66. },
  67. "preferTsExts": {
  68. "default": false,
  69. "description": "Re-order file extensions so that TypeScript imports are preferred.",
  70. "type": "boolean"
  71. },
  72. "pretty": {
  73. "default": false,
  74. "description": "Use pretty diagnostic formatter.",
  75. "type": "boolean"
  76. },
  77. "require": {
  78. "description": "Modules to require, like node's `--require` flag.\n\nIf specified in tsconfig.json, the modules will be resolved relative to the tsconfig.json file.\n\nIf specified programmatically, each input string should be pre-resolved to an absolute path for\nbest results.",
  79. "items": {
  80. "type": "string"
  81. },
  82. "type": "array"
  83. },
  84. "scope": {
  85. "default": false,
  86. "description": "Scope compiler to files within `cwd`.",
  87. "type": "boolean"
  88. },
  89. "skipIgnore": {
  90. "default": false,
  91. "description": "Skip ignore check.",
  92. "type": "boolean"
  93. },
  94. "transpileOnly": {
  95. "default": false,
  96. "description": "Use TypeScript's faster `transpileModule`.",
  97. "type": "boolean"
  98. },
  99. "typeCheck": {
  100. "default": true,
  101. "description": "**DEPRECATED** Specify type-check is enabled (e.g. `transpileOnly == false`).",
  102. "type": "boolean"
  103. }
  104. },
  105. "type": "object"
  106. },
  107. "TsConfigSchema": {
  108. "allOf": [
  109. {
  110. "$ref": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
  111. }
  112. ],
  113. "description": "tsconfig schema which includes \"ts-node\" options.",
  114. "properties": {
  115. "ts-node": {
  116. "$ref": "#/definitions/TsConfigOptions",
  117. "description": "ts-node options. See also: https://github.com/TypeStrong/ts-node#configuration-options\n\nts-node offers TypeScript execution and REPL for node.js, with source map support."
  118. }
  119. },
  120. "type": "object"
  121. }
  122. }
  123. }