From b185984ba354e92397645aa21312b6bf6103676d Mon Sep 17 00:00:00 2001 From: AsakuraMizu Date: Wed, 26 Jun 2024 17:08:01 +0800 Subject: [PATCH] chore: set outDir to dist --- .github/workflows/build.yml | 6 +++--- .gitignore | 2 +- wxt.config.ts | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac7d9b0..0f945d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: with: name: chrome path: | - .output/chrome-mv3/ + dist/chrome-mv3/ stats.html - name: Build Firefox version run: yarn zip:firefox @@ -29,11 +29,11 @@ jobs: with: name: firefox path: | - .output/firefox-mv3/ + dist/firefox-mv3/ stats.html - name: Upload Zip files uses: actions/upload-artifact@v4 with: name: zip-files path: | - .output/*.zip + dist/*.zip diff --git a/.gitignore b/.gitignore index bc4effb..e82791b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules -.output +dist stats.html stats-*.json .wxt diff --git a/wxt.config.ts b/wxt.config.ts index 0330b39..fb9487c 100644 --- a/wxt.config.ts +++ b/wxt.config.ts @@ -132,5 +132,8 @@ export default defineConfig({ zip: { artifactTemplate: `{{name}}-{{version}}-${gitBranch}-${gitVersion}-{{browser}}.zip`, sourcesTemplate: `{{name}}-{{version}}-${gitBranch}-${gitVersion}-sources.zip`, + // FIXME: remove this after https://github.com/wxt-dev/wxt/pull/774 being merged and released + excludeSources: ['dist/**'], }, + outDir: 'dist', });