Summary
vp create currently prompts the user to enable git hooks even when the staged config option is already present in vite.config.*.
If a project already opted into hooks via config, the prompt is redundant / confusing.
Conversation: https://discord.com/channels/1464542801676206113/1465764080207003811/1486623567281127425
Expected
- Detect whether git hooks / staged config is already configured inside
vite.config.ts
- If it is, skip the prompt and keep the existing behavior
Why
- Avoid double prompts and reduce friction for users who already configured hooks manually or via earlier versions of Vite+
- Keeps
vp create idempotent.