|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema", |
3 | 3 | "properties": { |
| 4 | + "compilerOptions": { |
| 5 | + "properties": { |
| 6 | + "plugins": { |
| 7 | + "items": { |
| 8 | + "properties": { |
| 9 | + "transform": { "type": "string" }, |
| 10 | + "import": { "type": "string" }, |
| 11 | + "after": { "type": "boolean" }, |
| 12 | + "afterDeclarations": { "type": "boolean" }, |
| 13 | + "type": { |
| 14 | + "oneOf": [ |
| 15 | + { "const": "program" }, |
| 16 | + { "const": "config" }, |
| 17 | + { "const": "checker" }, |
| 18 | + { "const": "raw" }, |
| 19 | + { "const": "compilerOptions" } |
| 20 | + ] |
| 21 | + } |
| 22 | + } |
| 23 | + } |
| 24 | + } |
| 25 | + } |
| 26 | + }, |
4 | 27 | "tstl": { |
5 | 28 | "description": "TypeScriptToLua options.", |
6 | 29 | "type": "object", |
7 | 30 | "properties": { |
| 31 | + "luaBundle": { |
| 32 | + "description": "The name of the lua file to bundle output lua to. Requires luaBundleEntry.", |
| 33 | + "type": "string" |
| 34 | + }, |
| 35 | + "luaBundleEntry": { |
| 36 | + "description": "The entry *.ts file that will be executed when entering the luaBundle. Requires luaBundle.", |
| 37 | + "type": "string" |
| 38 | + }, |
8 | 39 | "luaLibImport": { |
9 | 40 | "description": "Specifies how js standard features missing in lua are imported.", |
10 | 41 | "type": "string", |
|
15 | 46 | "type": "string", |
16 | 47 | "enum": ["5.1", "5.2", "5.3", "JIT"] |
17 | 48 | }, |
18 | | - "noHeader": { |
19 | | - "description": "Specify if a header will be added to compiled files.", |
| 49 | + "noImplicitSelf": { |
| 50 | + "description": "If \"this\" is implicitly considered an any type, do not generate a self parameter.", |
20 | 51 | "type": "boolean" |
21 | 52 | }, |
22 | | - "noHoisting": { |
23 | | - "description": "Disables hoisting.", |
| 53 | + "noHeader": { |
| 54 | + "description": "Specify if a header will be added to compiled files.", |
24 | 55 | "type": "boolean" |
25 | 56 | }, |
26 | 57 | "sourceMapTraceback": { |
27 | 58 | "description": "Applies the source map to show source TS files and lines in error tracebacks.", |
28 | 59 | "type": "boolean" |
29 | 60 | }, |
30 | | - "tsTransformers": { |
31 | | - "description": "Custom TypeScript transformers.", |
| 61 | + "luaPlugins": { |
| 62 | + "description": "List of TypeScriptToLua plugins.", |
32 | 63 | "type": "array", |
33 | 64 | "items": { |
34 | 65 | "type": "object", |
35 | 66 | "required": ["name"], |
36 | 67 | "properties": { |
37 | | - "name": { |
38 | | - "type": "string" |
39 | | - }, |
40 | | - "when": { |
41 | | - "enum": ["before", "after", "afterDeclarations"] |
42 | | - } |
| 68 | + "name": { "type": "string" }, |
| 69 | + "import": { "type": "string" } |
43 | 70 | } |
44 | 71 | } |
45 | 72 | } |
| 73 | + }, |
| 74 | + "dependencies": { |
| 75 | + "luaBundle": ["luaBundleEntry"], |
| 76 | + "luaBundleEntry": ["luaBundle"] |
46 | 77 | } |
47 | 78 | } |
48 | 79 | } |
|
0 commit comments