BB-Trinket-Edit/tsconfig.json

42 lines
1.7 KiB
JSON
Raw Normal View History

2023-05-17 23:50:05 -03:00
// The configuration file for TypeScript.
2021-11-23 07:47:24 -04:00
{
2023-05-17 23:50:05 -03:00
// 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",
2021-11-23 07:47:24 -04:00
2023-05-17 23:50:05 -03:00
// We extend the standard IsaacScript config:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/configs/tsconfig.mod.json
"extends": "isaacscript-tsconfig/tsconfig.mod.json",
2021-11-23 07:47:24 -04:00
2023-05-17 23:50:05 -03:00
// A list of the TypeScript files to compile.
"include": ["./src/**/*.ts"],
2021-11-23 07:47:24 -04:00
// TypeScriptToLua settings
"tstl": {
"luaTarget": "5.3",
2023-05-17 23:50:05 -03:00
"luaBundle": "./mod/main.lua", // Will bundle all output Lua files into a single file.
"luaBundleEntry": "./src/main.ts",
"luaPlugins": [
// A plugin to add an explanatory comment at the top of the compiled "main.lua" file.
{ "name": "isaacscript/src/plugins/addIsaacScriptCommentHeader.js" },
// A plugin to make enums safe from global variables.
{ "name": "isaacscript/src/plugins/noExtendedEnums.js" },
// 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/src/plugins/addCrashDebugStatements.ts
// { "name": "isaacscript/src/plugins/addCrashDebugStatements.js" },
],
"noHeader": true,
"noImplicitGlobalVariables": true,
},
// IsaacScript settings
"isaacscript": {
// A list of objects that represent the custom stages that are in your mod, if any. See:
// https://isaacscript.github.io/main/custom-stages
"customStages": [],
2021-11-23 07:47:24 -04:00
},
}