You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add VITE_PLUS_FORCE_MIGRATE env var for force migration
When VITE_PLUS_FORCE_MIGRATE=1 is set, vp migrate forces full
dependency rewriting even for projects already using vite-plus.
This replaces the fragile hack logic in patch-project.ts that
manually removed/re-added vite-plus and patched pnpm overrides.
Now patch-project.ts simply sets the env var for projects with
forceFreshMigration configured, and vp migrate handles everything
correctly including pnpm.overrides in package.json.
Copy file name to clipboardExpand all lines: .claude/skills/add-ecosystem-ci/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Fetch the repository's root to check if the main package.json is in a subdirecto
27
27
28
28
### 2.2 Check if Project Already Uses Vite-Plus
29
29
30
-
Check the project's root `package.json` for `vite-plus` in `dependencies` or `devDependencies`. If the project already uses vite-plus, set `forceFreshMigration: true` in `repo.json`. This is required because `patch-project.ts`runs `vp migrate`with locally built tgz overrides — without this flag, `vp migrate` detects "already using Vite+" and skips override injection, so the e2e test wouldn't actually test the locally built packages.
30
+
Check the project's root `package.json` for `vite-plus` in `dependencies` or `devDependencies`. If the project already uses vite-plus, set `forceFreshMigration: true` in `repo.json`. This tells `patch-project.ts`to set `VITE_PLUS_FORCE_MIGRATE=1` so `vp migrate`forces full dependency rewriting instead of skipping with "already using Vite+".
31
31
32
32
### 2.3 Auto-detect Commands from GitHub Workflows
- The `directory` field is optional - only add it if the package.json is not in the project root
116
116
- If `directory` is specified in repo.json, it must also be specified in the workflow matrix
117
117
- `patch-project.ts`automatically handles running `vp migrate` in the correct directory
118
-
- `forceFreshMigration`is required for projects that already have `vite-plus` in their package.json — it removes the existing dependency before migration so the locally built tgz overrides get injected
118
+
- `forceFreshMigration`is required for projects that already have `vite-plus` in their package.json — it sets `VITE_PLUS_FORCE_MIGRATE=1` so `vp migrate` forces full dependency rewriting instead of skipping
119
119
- OS exclusions are added to the existing `exclude` section in the workflow matrix
0 commit comments