diff --git a/package.json b/package.json index 3a5dfea..99c8f9e 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,18 @@ { "name": "computercraft-vs", - "version": "1.0.3", + "version": "1.0.4", "description": "", "license": "ISC", "author": "", "type": "commonjs", "types": "types/index.d.ts", - "main": "./dist/main", + "main": "index.js", "scripts": { "build": "tstl" }, "devDependencies": { "@eslint/js": "^9.27.0", "@typescript-to-lua/language-extensions": "^1.19.0", - "computercraft-ts": "latest", "eslint": "^9.27.0", "globals": "^16.2.0", "luamin": "^1.0.4", diff --git a/tsconfig.json b/tsconfig.json index d1a66be..0ce7d00 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,20 +4,17 @@ "target": "ESNext", "lib": ["ESNext"], "moduleResolution": "Node", - "types": [ - "computercraft-ts", - "@typescript-to-lua/language-extensions", - "./types/index" - ], + "types": ["./types/index", "@typescript-to-lua/language-extensions"], + "plugins": [{ "name": "typescript-tstl-plugin" }], "strict": true, - "declaration": true, "outDir": "dist/", - "rootDir": "src/", "noImplicitAny": false }, "tstl": { - "luaTarget": "JIT", - "buildMode": "library", + "luaTarget": "5.4", + "noHeader": true, + "luaBundle": "bundle.lua", + "luaBundleEntry": "src/main.ts", "noImplicitSelf": true }, "include": ["src/**/*"]