Skip to content

Commit 927dd23

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 b4f0431 commit 927dd23

File tree

19 files changed

+491
-47
lines changed

19 files changed

+491
-47
lines changed

.github/workflows/e2e-test.yml

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

0 commit comments

Comments
 (0)