docs: avoid duplicate vp installation in onboarding prompt - #2291
Conversation
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fbc2a9ef6a
ℹ️ 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".
| First, read https://viteplus.dev/llms-full.txt to learn Vite+'s commands and configuration. | ||
|
|
||
| Install the \`vp\` CLI: | ||
| Install the \`vp\` CLI if it's not already on the system: |
There was a problem hiding this comment.
Upgrade an existing CLI before migrating
When a user already has an older Vite+ installation and uses this prompt to migrate an existing Vite project, this condition lets the assistant skip the installer and proceed directly to vp migrate. However, docs/guide/migrate-rules.md:13-15 explicitly requires upgrading the global CLI first because migration delegates to it and needs the latest migration rules; the previous unconditional installer resolved and activated the latest version. Instruct the assistant to upgrade or validate an existing Vite+ installation rather than treating any existing vp as sufficient.
Useful? React with 👍 / 👎.
Closes #2290