Skip to content

Commit 33874b2

Browse files
fengmk2claude
andcommitted
feat(migration): support monorepo peerDependencies detection
Find the nearest package.json for each source file instead of only checking the root. This allows monorepos to have different packages with different peerDependencies - a vite plugin package can have vite in peerDependencies (imports preserved) while an app package without peerDependencies will have imports rewritten. - Add find_nearest_package_json() to walk up directories - Cache package.json lookups for performance - Add monorepo unit tests and snap-test 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 350a616 commit 33874b2

19 files changed

Lines changed: 496 additions & 48 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- main
1010
paths-ignore:
1111
- '**/*.md'
12+
pull_request:
13+
paths:
14+
- 'ecosystem-ci/**'
15+
- '.github/workflows/e2e-test.yml'
1216

1317
concurrency:
1418
group: ${{ github.workflow }}-${{ github.sha }}
@@ -48,7 +52,7 @@ jobs:
4852
- name: vibe-dashboard
4953
node-version: 24
5054
command: |
51-
pnpm playwright install --with-deps
55+
pnpm playwright install chromium
5256
# FIXME: Failed to load JS plugin: ./plugins/debugger.js
5357
# vite run ready
5458
vite fmt
@@ -88,6 +92,14 @@ jobs:
8892
vite run lint
8993
vite run type
9094
vite run test -- --coverage
95+
- name: vite-plugin-react
96+
node-version: 22
97+
command: |
98+
vite run format
99+
vite run lint -- --fix
100+
# TODO(fengmk2): run all builds and tests after tsdown version upgrade
101+
vite run @vitejs/plugin-rsc#build
102+
vite run @vitejs/plugin-rsc#test
91103
92104
steps:
93105
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)