Skip to content

fix(migrate): complete vp migrate for existing Vite+ projects#1821

Open
jong-kyung wants to merge 13 commits into
voidzero-dev:mainfrom
jong-kyung:fix/migrate-partial-vite-plus
Open

fix(migrate): complete vp migrate for existing Vite+ projects#1821
jong-kyung wants to merge 13 commits into
voidzero-dev:mainfrom
jong-kyung:fix/migrate-partial-vite-plus

Conversation

@jong-kyung

@jong-kyung jong-kyung commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Treat vite-plus in package.json as an installation signal, not a migration-complete signal.
  • Complete pending migration work for existing Vite+ projects, including scripts, imports, tsconfig types,
    ESLint/Prettier migration, and active legacy hook migration.
  • Add idempotent package manager settings completion for existing Vite+ projects without applying optional
    hooks/agent/editor setup unless explicitly requested.
  • Keep fully migrated projects idempotent with the existing “Happy coding!” no-op behavior.

Validation

  • pnpm -F vite-plus snap-test-global migration-already-vite-plus
  • pnpm -F vite-plus snap-test-global migration-partially-installed-vite-plus
  • pnpm -F vite-plus snap-test-global migration-eslint-lint-staged-mjs
  • vp check --fix packages/cli/src/migration/bin.ts packages/cli/src/migration/migrator.ts packages/cli/src/migration/report.ts packages/cli/src/migration/__tests__/migrator.spec.ts
  • vp test run packages/cli/src/migration/__tests__/migrator.spec.ts

closes #1817

Finish core script, import, and tsconfig type rewrites when vite-plus is already installed but legacy Vite signals remain.

Add regression coverage matching the manual migration reproduction with package manager overrides.
@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 9447d51
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a2bd5d45cf4030008fb4c6c

@jong-kyung jong-kyung self-assigned this Jun 12, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@socket-security

socket-security Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​types/​react-dom@​19.2.31001007585100
Addednpm/​@​types/​react@​19.2.171001007996100
Addednpm/​react@​19.2.71001008497100
Addednpm/​@​vitejs/​plugin-react@​6.0.210010010092100
Addednpm/​react-dom@​19.2.71001009298100

View full report

@jong-kyung jong-kyung marked this pull request as ready for review June 12, 2026 04:59
@jong-kyung jong-kyung force-pushed the fix/migrate-partial-vite-plus branch from 1d85af2 to 822a576 Compare June 12, 2026 05:03
@jong-kyung jong-kyung marked this pull request as draft June 12, 2026 05:49
@jong-kyung jong-kyung force-pushed the fix/migrate-partial-vite-plus branch from 962e6bc to e42e2fb Compare June 12, 2026 07:10
@jong-kyung jong-kyung changed the title fix(migrate): detect partial Vite+ migrations fix(migrate): complete vp migrate for existing Vite+ projects Jun 12, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@jong-kyung jong-kyung marked this pull request as ready for review June 12, 2026 08:56
@jong-kyung jong-kyung requested a review from fengmk2 June 12, 2026 08:58
@fengmk2

fengmk2 commented Jun 12, 2026

Copy link
Copy Markdown
Member

@codex review

@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: create-e2e Run `vp create` e2e tests labels Jun 12, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62aaf17b34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/cli/src/migration/migrator.ts Outdated
Comment thread packages/cli/src/migration/migrator.ts
Comment thread packages/cli/src/migration/migrator.ts Outdated
Complete existing Vite+ package manager bootstrap checks so partial migrations do not leave unresolved pnpm catalogs, npm override conflicts, or missing pnpm peer rules.
Keep existing Vite+ bootstrap catalog usage limited to paths that also define catalog entries, and cover pnpm/yarn monorepo edge cases.
Limit existing Vite+ direct dependency cleanup to the npm override conflict path so other package managers keep their package specs untouched during bootstrap completion.
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@fengmk2 I fixed the Codex review feedback. Could you please take another look? 🙇‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp migrate exits early when vite-plus is already installed, leaving Vite imports and scripts unmigrated

2 participants