From 1c70dbfbcfbecce324d32634f97ec93e69a9bd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 26 Sep 2023 22:06:48 +0800 Subject: [PATCH] ci: fix build --- .github/workflows/ci.yml | 3 +++ package.json | 1 + pnpm-lock.yaml | 3 +++ tsconfig.json | 3 +-- vitest.config.ts | 5 ++++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1217a953..86b6b965 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,9 @@ jobs: - name: Install deps run: pnpm install + - name: Build + run: pnpm run + - name: Test unit run: pnpm run test diff --git a/package.json b/package.json index 0506dbe8..7a4b86e9 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@types/node": "^20.7.0", "@typescript-eslint/eslint-plugin": "^6.7.3", "@vitest/coverage-v8": "^0.34.5", + "@vue/babel-plugin-jsx": "workspace:*", "bumpp": "^9.2.0", "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5acf45b2..917cd744 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@vitest/coverage-v8': specifier: ^0.34.5 version: 0.34.5(vitest@0.34.5) + '@vue/babel-plugin-jsx': + specifier: workspace:* + version: link:packages/babel-plugin-jsx bumpp: specifier: ^9.2.0 version: 9.2.0 diff --git a/tsconfig.json b/tsconfig.json index f4d18805..8a417ee8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,5 @@ }, "noEmit": true, "customConditions": ["dev"] - }, - "include": ["packages/*/src", "packages/*/test"] + } } diff --git a/vitest.config.ts b/vitest.config.ts index abe9222a..6063728c 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,8 +1,11 @@ import { defineConfig } from 'vitest/config'; import { babel } from '@rollup/plugin-babel'; -import Jsx from './packages/babel-plugin-jsx/src'; +import Jsx from '@vue/babel-plugin-jsx'; export default defineConfig({ + resolve: { + conditions: ['dev'], + }, esbuild: { jsx: 'preserve', },