Skip to content

Commit fdfd022

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 871d8d3 commit fdfd022

19 files changed

Lines changed: 491 additions & 47 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ jobs:
9595
vite run lint
9696
vite run type
9797
vite run test -- --coverage
98+
- name: vite-plugin-react
99+
node-version: 22
100+
command: |
101+
vite run format
102+
vite run lint -- --fix
103+
# TODO(fengmk2): run all builds and tests after tsdown version upgrade
104+
vite run @vitejs/plugin-rsc#build
105+
vite run @vitejs/plugin-rsc#test
98106
99107
steps:
100108
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)