diff options
| author | Bobby <[email protected]> | 2025-09-24 20:01:57 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-09-24 20:01:57 +0530 |
| commit | fd7dec9de4dc1d9496ecc475433e8350d0ed667c (patch) | |
| tree | 81473b8de758f9fb9c772a84be59873c74af7bac /package.json | |
| parent | c2d3c104987e35aa3d124d7c358d98ea17771a82 (diff) | |
| download | thunderbird-ai-compose-fd7dec9de4dc1d9496ecc475433e8350d0ed667c.tar.xz thunderbird-ai-compose-fd7dec9de4dc1d9496ecc475433e8350d0ed667c.zip | |
add bundler script
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/package.json b/package.json index e3305a8..8b3ac76 100644 --- a/package.json +++ b/package.json @@ -21,23 +21,29 @@ "author": "Bobby <[email protected]>", "scripts": { "clean": "rm -rf build", - "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/ && mkdir -p build/popup build/options && cp src/popup/*.html build/popup/ && cp src/options/*.html build/options/ && 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" + "build:ts": "tsup src/**/*.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", + "bundle": "ts-node bundle.ts", + "release": "npm run build && npm run bundle" }, "dependencies": { "webextension-polyfill": "^0.12.0" }, "devDependencies": { + "@types/adm-zip": "^0.5.7", "@types/firefox-webext-browser": "^120.0.4", + "@types/node": "^24.5.2", "@types/webextension-polyfill": "^0.12.3", "@typescript-eslint/eslint-plugin": "^8.44.1", "@typescript-eslint/parser": "^8.44.1", + "adm-zip": "^0.5.16", "eslint": "^9.36.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "prettier": "^3.6.2", + "ts-node": "^10.9.2", "tsup": "^8.5.0", "typescript": "^5.9.2" } -}
\ No newline at end of file +} |
