fix: entry point

This commit is contained in:
Isaac Shoebottom 2023-05-17 23:50:05 -03:00
parent 0aa251a864
commit 24d7993de1
4 changed files with 60 additions and 17 deletions

23
package-lock.json generated
View File

@ -13,7 +13,10 @@
"isaacscript": "^3.6.45",
"isaacscript-common": "^30.11.1",
"isaacscript-lint": "^4.16.9",
"typescript": "^5.0.4"
"isaacscript-spell": "^1.2.39",
"isaacscript-tsconfig": "^4.0.0",
"typescript": "^5.0.4",
"typescript-to-lua": "^1.15.1"
}
},
"node_modules/@babel/code-frame": {
@ -931,6 +934,11 @@
"resolved": "https://registry.npmjs.org/@tsconfig/recommended/-/recommended-1.0.2.tgz",
"integrity": "sha512-dbHBtbWBOjq0/otpopAE02NT2Cm05Qe2JsEKeCf/wjSYbI2hz8nCqnpnOJWHATgjDz4fd3dchs3Wy1gQGjfN6w=="
},
"node_modules/@tsconfig/strictest": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@tsconfig/strictest/-/strictest-1.0.2.tgz",
"integrity": "sha512-IRKlC8cnP7zMz1SDBjyIVyPapkEGWLZ6wkF6Z8T+xU80P9sO5uGXlIUvtzjx+7ehPJRWxkB6CeIDwUfyqNtYkQ=="
},
"node_modules/@tufjs/canonical-json": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz",
@ -4385,6 +4393,19 @@
"typescript": ">= 4.0.0"
}
},
"node_modules/isaacscript-spell": {
"version": "1.2.39",
"resolved": "https://registry.npmjs.org/isaacscript-spell/-/isaacscript-spell-1.2.39.tgz",
"integrity": "sha512-/sdtCpCtMvI+3SIoxUbIcCimHG4/NY33S8HshFPZvdGXfudAtHIWMnCwfwoD+4NOo9sZ1WFn2er2X2G5pq98Qw=="
},
"node_modules/isaacscript-tsconfig": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/isaacscript-tsconfig/-/isaacscript-tsconfig-4.0.0.tgz",
"integrity": "sha512-28vpFez7IDwXzNozd4jfQSLDLAWCrVy3Rqcw3Xy5ClEI3XDB+Xxa+ZZfQ7sB0+SpmuChFOtI+KErlISLOP9xpQ==",
"dependencies": {
"@tsconfig/strictest": "^1.0.2"
}
},
"node_modules/isaacscript/node_modules/ajv": {
"version": "8.12.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",

View File

@ -10,11 +10,15 @@
"repentance"
],
"license": "GPL-3.0",
"type": "commonjs",
"dependencies": {
"isaac-typescript-definitions": "^13.0.11",
"isaacscript": "^3.6.45",
"isaacscript-common": "^30.11.1",
"isaacscript-lint": "^4.16.9",
"typescript": "^5.0.4"
"isaacscript-spell": "^1.2.39",
"isaacscript-tsconfig": "^4.0.0",
"typescript": "^5.0.4",
"typescript-to-lua": "^1.15.1"
}
}

View File

@ -4,6 +4,7 @@ import {ModCallback, PlayerType, TrinketType} from "isaac-typescript-definitions
const MOD_NAME = "Blue Baby Petrified Poop Start";
main();
function main() {
const mod = RegisterMod(MOD_NAME, 1);

View File

@ -1,24 +1,41 @@
// The configuration file for TypeScript
// The configuration file for TypeScript.
{
// We extend the standard IsaacScript config
// https://github.com/IsaacScript/isaacscript-tsconfig/blob/main/tsconfig.mod.json
// 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 config:
// https://github.com/IsaacScript/isaacscript/blob/main/packages/isaacscript-tsconfig/configs/tsconfig.mod.json
"extends": "isaacscript-tsconfig/tsconfig.mod.json",
// https://www.typescriptlang.org/docs/handbook/compiler-options.html
"compilerOptions": {
// Specifies the root folder within your source files
"rootDir": "./src",
},
// A list of the TypeScript files to compile
"include": [
"./src/**/*.ts",
],
// 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
"luaBundleEntry": "./src/bundleEntry.ts", // This invokes the "main.ts" file
"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": [],
},
}