Skip to content

vp create: skip git-hook prompt when staged config already exists #1154

@crusty-voidzero

Description

@crusty-voidzero

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Priority

High

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions