diff --git a/tsconfig.json b/tsconfig.json index 6f40d1e..a1e1c17 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "lib": ["DOM", "DOM.Iterable", "ESNext"], + "lib": [ "DOM", "DOM.Iterable", "ESNext" ], "allowJs": false, "skipLibCheck": true, "esModuleInterop": false, @@ -17,9 +17,9 @@ "jsx": "react-jsx", "baseUrl": ".", "paths": { - "@/*": ["src/*"] + "@/*": [ "src/*" ] } }, - "include": ["src"], + "include": [ "src" ], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json index 76a518f..d4a2cbc 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -7,5 +7,5 @@ "resolveJsonModule": true, "target": "ESNext" }, - "include": ["vite.config.ts"] + "include": [ "vite.config.ts" ] } diff --git a/vite.config.ts b/vite.config.ts index dabf75d..fef0583 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,18 +11,16 @@ const manifest: ManifestV3Export = { action: { default_popup: "index.html" }, - /*background: { - service_worker: "src/controller/Background.ts", - type: "module" - },*/ - content_scripts: [ - { - matches: [""], - js: ["src/provider/inject.ts"], - run_at: "document_start" - } - ], - permissions: ["storage", "alarms"], + background: { + service_worker: "src/wallet/index.ts", + type: "module" + }, + content_scripts: [{ + matches: [ "" ], + js: [ "src/provider/inject.ts" ], + run_at: "document_start" + }], + permissions: [ "storage", "alarms", "notifications" ], // this is an ID for firefox, but the `ManifestV3Export` type doesn't have it // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore @@ -39,7 +37,7 @@ const manifest: ManifestV3Export = { // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), crx({ manifest })], + plugins: [ react(), crx({ manifest }) ], resolve: { alias: { "@": path.resolve(__dirname, "src") @@ -47,7 +45,7 @@ export default defineConfig({ }, css: { postcss: { - plugins: [tailwindcss] + plugins: [ tailwindcss ] } }, server: {