diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e993f4..69d74ea 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,8 +29,8 @@ jobs: - run: pnpm tsc - run: pnpm eslint . - run: pnpm stylelint . - - run: pnpm build - run: pnpm vitest run + - run: pnpm build - run: pnpm --recursive --sequential run build release: needs: check diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 0000000..74b0848 --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,16 @@ +import * as url from 'node:url' +import * as path from 'node:path' +import { defineConfig } from 'vitest/config' + +const rootDir = url.fileURLToPath(new URL('.', import.meta.url)) + +export default defineConfig({ + test: { + alias: [ + { + find: /^@minissg\/([^/]+)$/, + replacement: path.join(rootDir, 'packages', '$1', 'src') + } + ] + } +})