Skip to content

Commit

Permalink
fix(cli): mod tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 11, 2024
1 parent c13f25d commit 592117d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
"isaacscript-tsconfig/tsconfig.mod.json",
],

// A list of the TypeScript files to compile.
"include": ["./src/**/*.ts"],

// TypeScriptToLua settings
"tstl": {
"luaTarget": "5.3",
"luaBundle": "./mod/main.lua", // Will bundle all output Lua files into a single file.
"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.
Expand Down
3 changes: 1 addition & 2 deletions packages/isaacscript-common/tsconfig.bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"tstl": {
"buildMode": "default", // Needed since we cannot bundle a library.
"luaTarget": "5.3",
"luaBundle": "isaacscript-common.lua", // Will bundle all output Lua files into a single file.
// Also exports everything from `isaac-typescript-definitions`
"luaBundle": "isaacscript-common.lua",
"luaBundleEntry": "./src/indexLua.ts",
"luaPlugins": [
// A plugin to add an explanatory comment at the top of the compiled "main.lua" file (for
Expand Down
3 changes: 3 additions & 0 deletions packages/isaacscript-tsconfig/tsconfig.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
// the standard library. (The standard library does not use ECMAScript decorators due to
// limitations in TSTL.)
"experimentalDecorators": true,

// We need to override the "outDir" specified by the base config.
"outDir": "${configDir}/mod",
},

// We cannot add values to the "tstl" object here (for TypeScriptToLua), since the entire object
Expand Down

0 comments on commit 592117d

Please sign in to comment.