From 47a0746f64bad93c9f72407c19f7b98abbe69904 Mon Sep 17 00:00:00 2001 From: Seismix Date: Fri, 21 Nov 2025 13:44:10 +0100 Subject: [PATCH 1/2] feat: add zip configuration to exclude .env files --- wxt.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wxt.config.ts b/wxt.config.ts index 389d733..b208814 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -3,6 +3,9 @@ import { defineConfig } from 'wxt'; // See https://wxt.dev/api/config.html export default defineConfig({ srcDir: 'src', + zip: { + exclude: ['**.env**'], + }, outDir: process.env.WXT_OUT_DIR || '.output', modules: ['@wxt-dev/module-svelte'], manifest: { From dc165dde8e5a79073848a21040c7deef73acc0e3 Mon Sep 17 00:00:00 2001 From: Seismix Date: Mon, 24 Nov 2025 10:04:12 +0100 Subject: [PATCH 2/2] feat: exclude playwright dirs from firefox sources zip --- wxt.config.ts | 61 ++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/wxt.config.ts b/wxt.config.ts index b208814..671c402 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -1,32 +1,39 @@ -import { defineConfig } from 'wxt'; +import { defineConfig } from "wxt" // See https://wxt.dev/api/config.html export default defineConfig({ - srcDir: 'src', - zip: { - exclude: ['**.env**'], - }, - outDir: process.env.WXT_OUT_DIR || '.output', - modules: ['@wxt-dev/module-svelte'], - manifest: { - name: 'RoyalRefresh', - description: 'A web extension for royalroad.com. For people who juggle multiple stories', - homepage_url: 'https://github.com/Seismix/royalrefresh', - permissions: ['storage', '*://*.royalroad.com/*'], - browser_specific_settings: { - gecko: { - id: 'royalrefresh.extension@example.com', - // @ts-expect-error - data_collection_permissions not yet in WXT types - data_collection_permissions: { - required: ['none'] - } + srcDir: "src", + zip: { + exclude: ["**.env**"], + excludeSources: [ + "test-results/**", + "blob-report/**", + "playwright-report/**", + "playwright/.cache/**", + ], + }, + outDir: process.env.WXT_OUT_DIR || ".output", + modules: ["@wxt-dev/module-svelte"], + manifest: { + name: "RoyalRefresh", + description: + "A web extension for royalroad.com. For people who juggle multiple stories", + homepage_url: "https://github.com/Seismix/royalrefresh", + permissions: ["storage", "*://*.royalroad.com/*"], + browser_specific_settings: { + gecko: { + id: "royalrefresh.extension@example.com", + // @ts-expect-error - data_collection_permissions not yet in WXT types + data_collection_permissions: { + required: ["none"], + }, + }, + gecko_android: {}, + }, + icons: { + "48": "icons/royalroad_48.png", + "96": "icons/royalroad_96.png", + "128": "icons/royalroad_128.png", }, - gecko_android: {} }, - icons: { - "48": "icons/royalroad_48.png", - "96": "icons/royalroad_96.png", - "128": "icons/royalroad_128.png" - } - }, -}); +})