Skip to content

Commit f663046

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 <[email protected]>
1 parent 350a616 commit f663046

19 files changed

Lines changed: 495 additions & 47 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 12 additions & 0 deletions
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 }}
@@ -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)