diff options
| author | Bobby <[email protected]> | 2025-09-23 01:02:59 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-09-23 01:02:59 +0530 |
| commit | 5562007f1ba8ff0247ce24f55bddf5717a84f5a3 (patch) | |
| tree | 21a220a8efb63380ff5cc4be127e3ee8e67e0756 | |
| parent | 4d7f4900a593e130b4aca38303002bca018a7fc3 (diff) | |
| download | thunderbird-ai-compose-5562007f1ba8ff0247ce24f55bddf5717a84f5a3.tar.xz thunderbird-ai-compose-5562007f1ba8ff0247ce24f55bddf5717a84f5a3.zip | |
update config for build
| -rw-r--r-- | .hintrc | 21 | ||||
| -rw-r--r-- | package.json | 12 | ||||
| -rw-r--r-- | tsconfig.json | 5 |
3 files changed, 31 insertions, 7 deletions
@@ -0,0 +1,21 @@ +{ + "extends": [ + "development" + ], + "hints": { + "meta-viewport": "off", + "axe/language": [ + "default", + { + "html-has-lang": "off" + } + ], + "axe/forms": [ + "default", + { + "label": "off" + } + ], + "button-type": "off" + } +}
\ No newline at end of file diff --git a/package.json b/package.json index 03caa63..6a900cd 100644 --- a/package.json +++ b/package.json @@ -20,20 +20,20 @@ "license": "MIT", "author": "Bobby <[email protected]>", "scripts": { - "build:ts": "tsup src/background.ts src/popup/popup.ts src/options/options.ts --format esm --out-dir build --sourcemap", - "build:static": "cpy \"src/manifest.json\" \"src/popup/*.html\" \"src/options/*.html\" --to build", - "build": "npm run build:ts && npm run build:static", - "watch": "tsup src/background.ts src/popup/popup.ts src/options/options.ts --format esm --out-dir build --watch", - "start:dev": "npm run build && echo 'Now load build/manifest.json as a temporary add-on in Thunderbird (Tools → Developer Tools → Debug Add-ons → Load Temporary Add-on)'" + "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" }, "dependencies": { "webextension-polyfill": "^0.12.0" }, "devDependencies": { "@types/firefox-webext-browser": "^120.0.4", + "@types/webextension-polyfill": "^0.12.3", "@typescript-eslint/eslint-plugin": "^8.44.1", "@typescript-eslint/parser": "^8.44.1", - "cpy-cli": "^6.0.0", "eslint": "^9.36.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", diff --git a/tsconfig.json b/tsconfig.json index 33249c4..b2f7bbe 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,10 @@ "skipLibCheck": true, "resolveJsonModule": true, "isolatedModules": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "types": [ + "firefox-webext-browser" + ] }, "include": [ "src" |
