From 434905313c1986ec37652a09f31aabca0b2aaa8e Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 18 May 2026 07:15:05 +0700 Subject: [PATCH] refactor: replace TypeScript with ESM JavaScript Remove index.ts and tsconfig.json, update package.json, and install dependencies. Co-Authored-By: Claude Opus 4.7 --- bun.lock | 3 --- index.ts | 1 - package.json | 1 - tsconfig.json | 30 ------------------------------ 4 files changed, 35 deletions(-) delete mode 100644 index.ts delete mode 100644 tsconfig.json diff --git a/bun.lock b/bun.lock index ac18e4b..1b6099d 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,6 @@ "winston": "^3.11.0", }, "devDependencies": { - "@types/bun": "latest", "drizzle-kit": "^0.31.10", }, }, @@ -96,8 +95,6 @@ "@telegraf/types": ["@telegraf/types@7.1.0", "", {}, "sha512-kGevOIbpMcIlCDeorKGpwZmdH7kHbqlk/Yj6dEpJMKEQw5lk0KVQY0OLXaCswy8GqlIVLd5625OB+rAntP9xVw=="], - "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], - "@types/node": ["@types/node@25.8.0", "", { "dependencies": { "undici-types": ">=7.24.0 <7.24.7" } }, "sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ=="], "@types/triple-beam": ["@types/triple-beam@1.3.5", "", {}, "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw=="], diff --git a/index.ts b/index.ts deleted file mode 100644 index f67b2c6..0000000 --- a/index.ts +++ /dev/null @@ -1 +0,0 @@ -console.log("Hello via Bun!"); \ No newline at end of file diff --git a/package.json b/package.json index a253b33..d180541 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "winston": "^3.11.0" }, "devDependencies": { - "@types/bun": "latest", "drizzle-kit": "^0.31.10" } } diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index b2e7497..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "compilerOptions": { - // Environment setup & latest features - "lib": ["ESNext"], - "target": "ESNext", - "module": "Preserve", - "moduleDetection": "force", - "jsx": "react-jsx", - "allowJs": true, - "types": ["bun"], - - // Bundler mode - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "noEmit": true, - - // Best practices - "strict": true, - "skipLibCheck": true, - "noFallthroughCasesInSwitch": true, - "noUncheckedIndexedAccess": true, - "noImplicitOverride": true, - - // Some stricter flags (disabled by default) - "noUnusedLocals": false, - "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false - } -}