From 09f9035da74a84c192435125bffde640bd7baf99 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 24 Sep 2025 21:50:38 +0530 Subject: update bundle scripts --- bundle.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'bundle.ts') diff --git a/bundle.ts b/bundle.ts index 40471e8..c7d4e9d 100644 --- a/bundle.ts +++ b/bundle.ts @@ -1,10 +1,6 @@ -import fs from "fs"; -import path from "path"; -import { fileURLToPath } from "url"; -import AdmZip from "adm-zip"; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); +const fs = require("fs"); +const path = require("path"); +const AdmZip = require("adm-zip"); const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"), "utf-8")); const version: string = pkg.version || "0.0.0"; -- cgit v1.2.3