diff options
| author | Bobby <[email protected]> | 2025-09-24 21:50:38 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-09-24 21:50:38 +0530 |
| commit | 09f9035da74a84c192435125bffde640bd7baf99 (patch) | |
| tree | be3fe238a81d8ce42ff56c1d4242906cd243b723 | |
| parent | b9843df604bf7936aa59e57d15a83c9ef0724ec8 (diff) | |
| download | thunderbird-ai-compose-09f9035da74a84c192435125bffde640bd7baf99.tar.xz thunderbird-ai-compose-09f9035da74a84c192435125bffde640bd7baf99.zip | |
update bundle scriptsv0.1.0
| -rw-r--r-- | bundle.ts | 10 | ||||
| -rw-r--r-- | package.json | 2 |
2 files changed, 4 insertions, 8 deletions
@@ -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"; diff --git a/package.json b/package.json index 12b68b2..5ac057e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "license": "MIT", "author": "Bobby <[email protected]>", "scripts": { - "clean": "rm -rf build", + "clean": "rm -rf build && rm -rf release", "build:ts": "tsup src/background.ts src/popup/popup.ts src/options/options.ts --format cjs --out-dir build --splitting false --sourcemap", "build:static": "cp src/manifest.json build/ && cp -r src/popup build/ && cp -r src/options build/ && cp -r icons build/ && cp node_modules/webextension-polyfill/dist/browser-polyfill.js build/", "build": "npm run clean && npm run build:ts && npm run build:static", |
