add firefox specific changes

This commit is contained in:
2025-07-06 06:14:22 -04:00
parent e1a8e76262
commit b740e9d55b
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@
"default_popup": "popup.html" "default_popup": "popup.html"
}, },
"background": { "background": {
"service_worker": "background.js", "scripts": ["background.js"],
"type": "module" "type": "module"
}, },
"icons": { "icons": {

View File

@ -9,7 +9,7 @@
"rename:model": "mv dist/models/nli-deberta-v3-small/onnx/model.onnx dist/models/nli-deberta-v3-small/onnx/model.onnx_quantized.onnx", "rename:model": "mv dist/models/nli-deberta-v3-small/onnx/model.onnx dist/models/nli-deberta-v3-small/onnx/model.onnx_quantized.onnx",
"copy:config_and_tokenizer": "cpx \"./nli-deberta-v3-small/*.json\" dist/models/nli-deberta-v3-small/", "copy:config_and_tokenizer": "cpx \"./nli-deberta-v3-small/*.json\" dist/models/nli-deberta-v3-small/",
"build": "npm run clean && npm run copy:static && npm run copy:transformers && npm run copy:config_and_tokenizer && npm run copy:model_temp && npm run rename:model", "build": "npm run clean && npm run copy:static && npm run copy:transformers && npm run copy:config_and_tokenizer && npm run copy:model_temp && npm run rename:model",
"release": "npm run build && cd dist && bestzip ../praxis-v${npm_package_version}-chrome.zip *" "release": "npm run build && cd dist && bestzip ../praxis-v${npm_package_version}-firefox.zip *"
}, },
"devDependencies": { "devDependencies": {
"cpx": "^1.5.0", "cpx": "^1.5.0",