comctx
Version:
Cross-context RPC solution with type safety and flexible adapters.
34 lines (33 loc) • 931 B
JSON
{
"name": "browser-extension-example",
"description": "This is an example of communication between the content-script page and an background.",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "wxt",
"dev:firefox": "wxt -b firefox",
"build": "wxt build",
"build:firefox": "wxt build -b firefox",
"zip": "wxt zip",
"zip:firefox": "wxt zip -b firefox",
"compile": "tsc --noEmit",
"postinstall": "wxt prepare",
"lint": "eslint --fix --cache",
"check": "tsc --noEmit"
},
"dependencies": {
"@webext-core/messaging": "^2.2.0",
"comctx": "workspace:*"
},
"devDependencies": {
"@eslint/js": "^9.20.0",
"@types/chrome": "^0.0.280",
"eslint": "^9.20.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"globals": "^15.14.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.0",
"wxt": "^0.19.26"
}
}