Skip to content

Commit 734dee1

Browse files
committed
feat: upgrade tsconfig.json schema
1 parent 8327e79 commit 734dee1

File tree

1 file changed

+43
-12
lines changed

1 file changed

+43
-12
lines changed

tsconfig-schema.json

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,41 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"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+
},
427
"tstl": {
528
"description": "TypeScriptToLua options.",
629
"type": "object",
730
"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+
},
839
"luaLibImport": {
940
"description": "Specifies how js standard features missing in lua are imported.",
1041
"type": "string",
@@ -15,34 +46,34 @@
1546
"type": "string",
1647
"enum": ["5.1", "5.2", "5.3", "JIT"]
1748
},
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.",
2051
"type": "boolean"
2152
},
22-
"noHoisting": {
23-
"description": "Disables hoisting.",
53+
"noHeader": {
54+
"description": "Specify if a header will be added to compiled files.",
2455
"type": "boolean"
2556
},
2657
"sourceMapTraceback": {
2758
"description": "Applies the source map to show source TS files and lines in error tracebacks.",
2859
"type": "boolean"
2960
},
30-
"tsTransformers": {
31-
"description": "Custom TypeScript transformers.",
61+
"luaPlugins": {
62+
"description": "List of TypeScriptToLua plugins.",
3263
"type": "array",
3364
"items": {
3465
"type": "object",
3566
"required": ["name"],
3667
"properties": {
37-
"name": {
38-
"type": "string"
39-
},
40-
"when": {
41-
"enum": ["before", "after", "afterDeclarations"]
42-
}
68+
"name": { "type": "string" },
69+
"import": { "type": "string" }
4370
}
4471
}
4572
}
73+
},
74+
"dependencies": {
75+
"luaBundle": ["luaBundleEntry"],
76+
"luaBundleEntry": ["luaBundle"]
4677
}
4778
}
4879
}

0 commit comments

Comments
 (0)