From 364672918d9f199240926c7546e9df28927c1bda Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 22 May 2026 23:59:56 +0800 Subject: [PATCH] ci: add wxt prepare step to generate .wxt types for typecheck and tests --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60106f8..ae16e93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,6 +90,9 @@ jobs: path: node_modules key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }} + - name: Generate WXT types + run: npx wxt prepare + - name: Run TypeScript type check run: npm run typecheck @@ -113,6 +116,9 @@ jobs: path: node_modules key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }} + - name: Generate WXT types + run: npx wxt prepare + - name: Run tests run: npm run test @@ -144,6 +150,9 @@ jobs: key: ${{ runner.os }}-node-v22-${{ hashFiles('**/package-lock.json') }} # 💡 动态代理编译指令:完美匹配 WXT / 各类多端打包器的标准构建命令 + - name: Generate WXT types + run: npx wxt prepare + - name: Build Extension (${{ matrix.browser }}) run: | if npm run | grep -q "build:${{ matrix.browser }}"; then