Skip to content

chore: migrate to Vite+#93

Merged
Boshen merged 5 commits into
mainfrom
chore/migrate-to-vite-plus
May 17, 2026
Merged

chore: migrate to Vite+#93
Boshen merged 5 commits into
mainfrom
chore/migrate-to-vite-plus

Conversation

@Boshen
Copy link
Copy Markdown
Member

@Boshen Boshen commented May 17, 2026

Summary

  • Ran vp migrate to replace the husky + lint-staged + oxfmt JS toolchain with Vite+.
  • Git hooks now live in .vite-hooks/; formatting / lint / staged config consolidated into vite.config.ts; the only JS dev dep is now vite-plus (pinned via the new pnpm-workspace.yaml catalog).
  • package.json scripts switch to vp config (prepare) and vp fmt; added "type": "module" to silence the ESM warning on vite.config.ts.
  • AGENTS.md added with Vite+ usage instructions for coding agents.
  • Rust tooling (cargo, justfile, CI workflows) is unchanged — pnpm fmt in just fmt still works because the script forwards to vp fmt.

Verified locally with vp check (format + lint + type-check) — passes.

Boshen and others added 5 commits May 17, 2026 12:46
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>
@Boshen Boshen merged commit bab60ab into main May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant