-
Notifications
You must be signed in to change notification settings - Fork 5
/
tsconfig.json
44 lines (38 loc) · 1.91 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// The configuration file for TypeScript.
{
// We specify the schema to get auto-complete and validation.
"$schema": "https://raw.githubusercontent.com/IsaacScript/isaacscript/main/packages/isaacscript-cli/schemas/tsconfig-isaacscript-schema.json",
// We extend the standard IsaacScript configs.
"extends": [
// https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.base.json
"complete-tsconfig/tsconfig.base.json",
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/tsconfig.mod.json
"isaacscript-tsconfig/tsconfig.mod.json",
],
// TypeScriptToLua settings
"tstl": {
"luaTarget": "5.3",
"luaBundle": "main.lua", // Will bundle all output Lua files into a single file of "./mod/main.lua".
"luaBundleEntry": "./src/bundleEntry.ts",
"luaPlugins": [
// A plugin to add an explanatory comment at the top of the compiled "main.lua" file.
{ "name": "isaacscript/plugins/addIsaacScriptCommentHeader.cjs" },
// A plugin to make enums safe from global variables.
{ "name": "isaacscript/plugins/noExtendedEnums.cjs" },
// Uncomment this and recompile the mod to enable crash debugging, which will tell you the
// exact line of the mod that is causing the crash. For more information, read the comment at
// the top of the file:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-cli/plugins/addCrashDebugStatements.ts
// { "name": "isaacscript/plugins/addCrashDebugStatements.cjs" },
],
"noHeader": true,
"noImplicitGlobalVariables": true,
},
// IsaacScript settings
"isaacscript": {
// A list of objects that represent the custom stages that are in your mod, if any. You can
// safely delete this section if you do not have any custom stages. See:
// https://isaacscript.github.io/main/custom-stages
"customStages": [],
},
}