From 88511e8670960d20587132e447a5f097411dcb91 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 24 Sep 2025 16:14:29 +0530 Subject: update scripts to target glob --- package.json | 7 +++---- 1 file 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 ", "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" -- cgit v1.2.3