UNPKG

7.14 kBJSONView Raw
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 instead of the language service 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 TypeScript `compilerOptions`.",
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 "files": {
36 "default": false,
37 "description": "Load \"files\" and \"include\" from `tsconfig.json` on startup.\n\nDefault is to override `tsconfig.json` \"files\" and \"include\" to only include the entrypoint script.",
38 "type": "boolean"
39 },
40 "ignore": {
41 "default": [
42 "(?:^|/)node_modules/"
43 ],
44 "description": "Paths which should not be compiled.\n\nEach string in the array is converted to a regular expression via `new RegExp()` and tested against source paths prior to compilation.\n\nSource paths are normalized to posix-style separators, relative to the directory containing `tsconfig.json` or to cwd if no `tsconfig.json` is loaded.\n\nDefault is to ignore all node_modules subdirectories.",
45 "items": {
46 "type": "string"
47 },
48 "type": "array"
49 },
50 "ignoreDiagnostics": {
51 "description": "Ignore TypeScript warnings by diagnostic code.",
52 "items": {
53 "type": [
54 "string",
55 "number"
56 ]
57 },
58 "type": "array"
59 },
60 "logError": {
61 "default": false,
62 "description": "Logs TypeScript errors to stderr instead of throwing exceptions.",
63 "type": "boolean"
64 },
65 "preferTsExts": {
66 "default": false,
67 "description": "Re-order file extensions so that TypeScript imports are preferred.\n\nFor example, when both `index.js` and `index.ts` exist, enabling this option causes `require('./index')` to resolve to `index.ts` instead of `index.js`",
68 "type": "boolean"
69 },
70 "pretty": {
71 "default": false,
72 "description": "Use pretty diagnostic formatter.",
73 "type": "boolean"
74 },
75 "require": {
76 "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.",
77 "items": {
78 "type": "string"
79 },
80 "type": "array"
81 },
82 "skipIgnore": {
83 "default": false,
84 "description": "Skip ignore check, so that compilation will be attempted for all files with matching extensions.",
85 "type": "boolean"
86 },
87 "transpileOnly": {
88 "default": false,
89 "description": "Use TypeScript's faster `transpileModule`.",
90 "type": "boolean"
91 },
92 "transpiler": {
93 "anyOf": [
94 {
95 "additionalItems": {
96 "anyOf": [
97 {
98 "type": "string"
99 },
100 {
101 "additionalProperties": true,
102 "properties": {
103 },
104 "type": "object"
105 }
106 ]
107 },
108 "items": [
109 {
110 "type": "string"
111 },
112 {
113 "additionalProperties": true,
114 "properties": {
115 },
116 "type": "object"
117 }
118 ],
119 "minItems": 2,
120 "type": "array"
121 },
122 {
123 "type": "string"
124 }
125 ],
126 "description": "Specify a custom transpiler for use with transpileOnly"
127 },
128 "typeCheck": {
129 "default": true,
130 "description": "**DEPRECATED** Specify type-check is enabled (e.g. `transpileOnly == false`).",
131 "type": "boolean"
132 }
133 },
134 "type": "object"
135 },
136 "TsConfigSchema": {
137 "allOf": [
138 {
139 "$ref": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
140 }
141 ],
142 "description": "tsconfig schema which includes \"ts-node\" options.",
143 "properties": {
144 "ts-node": {
145 "$ref": "#/definitions/TsConfigOptions",
146 "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."
147 }
148 },
149 "type": "object"
150 }
151 }
152}
153