Describe the bug
I want Vite+ to install the Git hook dispatcher while keeping a custom pre-commit hook that runs whole-project checks. For example:
vp run lint
vp exec tsc --noEmit
Currently, vp config appends vp staged to the existing hook and adds a staged block to vite.config.ts.
--no-hooks does not cover this use case because it also skips dispatcher installation, so the setup is not reproducible on a fresh clone.
Reproduction
Not required
Steps to reproduce
No response
System Info
Tool Paths:
node /Users/user/.vite-plus/js_runtime/node/26.5.0/bin/node
npm /Users/user/.vite-plus/js_runtime/node/26.5.0/bin/npm
npx /Users/user/.vite-plus/js_runtime/node/26.5.0/bin/npx
Package Manager:
Name pnpm
Version 11.17.0
Source packageManager
Source Path /Users/user/src/user/repo/package.json
Project Root /Users/user/src/user/repo
Bin Path /Users/user/.vite-plus/package_manager/pnpm/11.17.0/pnpm/bin/pnpm
vp v0.2.6
Local vite-plus:
vite-plus v0.2.6
Tools:
vite v8.1.5
rolldown v1.2.0
vitest v4.1.10
oxfmt v0.60.0
oxlint v1.75.0
oxlint-tsgolint v7.0.2001
tsdown v0.22.13
Environment:
Package manager pnpm v11.17.0
Node.js v26.5.0 (.node-version)
Used Package Manager
pnpm
Logs
Validations
Describe the bug
I want Vite+ to install the Git hook dispatcher while keeping a custom pre-commit hook that runs whole-project checks. For example:
vp run lint vp exec tsc --noEmitCurrently,
vp configappendsvp stagedto the existing hook and adds astagedblock tovite.config.ts.--no-hooksdoes not cover this use case because it also skips dispatcher installation, so the setup is not reproducible on a fresh clone.Reproduction
Not required
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Logs
Validations