From daf311688b408c1513999bdf5a8583217efd2cb2 Mon Sep 17 00:00:00 2001 From: mincomk Date: Wed, 4 Jun 2025 00:45:36 +0900 Subject: [PATCH] fix: noImplicitSelf --- package.json | 2 +- templates/executable/tsconfig.json | 1 + templates/library/tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6f65827..0f91048 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-computercraft", - "version": "1.0.4", + "version": "1.0.5", "description": "", "files": [ "./dist/**/*.js", diff --git a/templates/executable/tsconfig.json b/templates/executable/tsconfig.json index aa41494..85aca78 100644 --- a/templates/executable/tsconfig.json +++ b/templates/executable/tsconfig.json @@ -13,6 +13,7 @@ "tstl": { "luaTarget": "5.4", "noHeader": true, + "noImplicitSelf": true, "luaBundle": "bundle.lua", "luaBundleEntry": "src/main.ts" }, diff --git a/templates/library/tsconfig.json b/templates/library/tsconfig.json index 92d4527..41e3619 100644 --- a/templates/library/tsconfig.json +++ b/templates/library/tsconfig.json @@ -12,7 +12,8 @@ }, "tstl": { "luaTarget": "JIT", - "buildMode": "library" + "buildMode": "library", + "noImplicitSelf": true }, "include": ["src/**/*"] }