chore: migrate to Vite+#93
Merged
Merged
Conversation
Run `vp migrate` to replace husky + lint-staged + oxfmt with Vite+. Git hooks now live in `.vite-hooks/`, formatting/lint/staged config moves to `vite.config.ts`, and the single dev dep becomes `vite-plus`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- vite.config.ts: drop type-aware lint options (no TS source beyond the config file itself) - justfile: call `vp fmt` directly instead of routing through `pnpm fmt` - ci.yml: use `vp fmt --check` (the only check this repo actually needs), pin setup-vp to .node-version, and skip `vp install` - update-builtins.yml: pin setup-vp to .node-version (previously fell back to latest LTS, defeating the workflow's purpose) and skip `vp install` Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`vp fmt --check` loads vite.config.ts, which imports `vite-plus` — without the install step the resolver fails. Drops the over-eager run-install: false added in the previous commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vp migrateto replace the husky + lint-staged + oxfmt JS toolchain with Vite+..vite-hooks/; formatting / lint / staged config consolidated intovite.config.ts; the only JS dev dep is nowvite-plus(pinned via the newpnpm-workspace.yamlcatalog).package.jsonscripts switch tovp config(prepare) andvp fmt; added"type": "module"to silence the ESM warning onvite.config.ts.AGENTS.mdadded with Vite+ usage instructions for coding agents.pnpm fmtinjust fmtstill works because the script forwards tovp fmt.Verified locally with
vp check(format + lint + type-check) — passes.