aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-09-24 16:14:29 +0530
committerBobby <[email protected]>2025-09-24 16:14:29 +0530
commit88511e8670960d20587132e447a5f097411dcb91 (patch)
tree0b65512affac4633b78cd988368532e10e898489
parent8f17548fc0e1b41d725f2144e209ac8655d2afeb (diff)
downloadthunderbird-ai-compose-88511e8670960d20587132e447a5f097411dcb91.tar.xz
thunderbird-ai-compose-88511e8670960d20587132e447a5f097411dcb91.zip
update scripts to target glob
-rw-r--r--package.json7
1 files changed, 3 insertions, 4 deletions
diff --git a/package.json b/package.json
index 6a900cd..59d5c11 100644
--- a/package.json
+++ b/package.json
@@ -21,10 +21,9 @@
"author": "Bobby <[email protected]>",
"scripts": {
"clean": "rm -rf build",
- "build:ts": "tsup src/background.ts src/popup/popup.ts src/options/options.ts --format iife --out-dir build --splitting false --sourcemap false",
- "rename:ext": "find build -name '*.global.js' -exec bash -c 'mv \"$0\" \"${0%.global.js}.js\"' {} \\;",
- "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 node_modules/webextension-polyfill/dist/browser-polyfill.js build/",
- "build": "npm run clean && npm run build:ts && npm run rename:ext && 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"
},
"dependencies": {
"webextension-polyfill": "^0.12.0"