diff options
| author | Bobby <[email protected]> | 2025-09-24 19:50:42 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-09-24 19:50:42 +0530 |
| commit | 87600dc65e07160a867c20a048dedf3c7ad5d19e (patch) | |
| tree | 71c23a1d1233088b484927e602d3a61934c7dd10 | |
| parent | 88511e8670960d20587132e447a5f097411dcb91 (diff) | |
| download | thunderbird-ai-compose-87600dc65e07160a867c20a048dedf3c7ad5d19e.tar.xz thunderbird-ai-compose-87600dc65e07160a867c20a048dedf3c7ad5d19e.zip | |
update scripts and errors
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | src/popup/popup.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/package.json b/package.json index 59d5c11..e3305a8 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "author": "Bobby <[email protected]>", "scripts": { "clean": "rm -rf build", - "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: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" }, "dependencies": { diff --git a/src/popup/popup.ts b/src/popup/popup.ts index e3d4e29..f849dcd 100644 --- a/src/popup/popup.ts +++ b/src/popup/popup.ts @@ -134,7 +134,7 @@ const { sendBtn, promptEl } = getElements(); sendBtn.addEventListener("click", (): void => { handleInsert().catch((err: unknown): void => { console.error("Popup insert failed:", err); - alert("Error inserting text. See console for details."); + alert("Error inserting text: " + (err as Error).message + ". See console for more details."); }); }); promptEl.addEventListener("input", (): void => { |
