vite-plus-inspector
v0.1.1
Published
Visualize your vite-plus configuration
Maintainers
Readme
vite-plus-inspector
Visualize your vite-plus configuration in the browser —
a config inspector for the vite.config.ts that drives vp check, vp pack,
vp test, and friends.
It loads your config (TypeScript, extends, spreads and all) and renders every
augmented section — fmt, lint, staged, pack, test, run, create —
with a focus on oxlint: presets are flattened, severities are resolved, and
you can type a file path to see exactly which rules apply to it.
Usage
Run it in any project that has a vite.config.ts:
npx vite-plus-inspector # current directory
npx vite-plus-inspector ./app # a specific projectOr install the vp-inspect binary globally:
pnpm add -g vite-plus-inspector
vp-inspectExport a standalone, shareable HTML snapshot — no server needed, file resolution runs client-side:
npx vite-plus-inspector --output inspector.htmlOptions:
| Flag | Description | Default |
| --------------------- | -------------------------------------------- | ----------------- |
| [root] | Directory containing vite.config.ts | current directory |
| -p, --port <port> | Port for the server (or PORT env) | 5177 |
| -o, --output <file> | Write a standalone static HTML file and exit | (runs a server) |
| --no-open | Don't open the browser automatically | opens |
| --no-watch | Don't reload when vite.config.ts changes | watches |
What it shows
- Overview — which sections are configured at a glance.
- lint (oxlint) — the star of the show:
- Every registered rule, not just the ones you named. The full oxlint
catalog (800+ rules) is pulled from
vp lint --rules, and each rule shows its effective severity, category, whether it's auto-fixable or type-aware, and a link to its oxc.rs docs. - Effective severities are resolved, not just declared: the
extendschain is flattened recursively (e.g.nextjs → react → typescript → base), category baselines and individual rules merge last-wins, and each rule is attributed to its source (base,typescript,config,category: …). - Filters by state (error/warn/off), plugin, category, plus quick views like explicitly configured and default-on but disabled.
- Resolve for a file path — type
apps/main/foo.test.tsxand see the rules that actually apply, with matchingoverrideslayered in.
- Every registered rule, not just the ones you named. The full oxlint
catalog (800+ rules) is pulled from
- fmt / staged / pack / test / run / create — options, ignore patterns, overrides, entry points, tasks and more.
- Live reload — edits to
vite.config.tsrefresh the inspector automatically (disable with--no-watch).
The config is loaded with jiti, so it never runs
your build — it only reads the resolved configuration object. The rule catalog
needs vp on your PATH; without it, the inspector still shows declared rules.
Develop
pnpm install
pnpm check # fmt + lint + typecheck
pnpm test
pnpm build # vp pack -> dist/Release
Versioned and published with pnpm's built-in release management, driven in CI by k35o/pnpm-release-action.
pnpm change # describe the change (writes a changesets-format intent to .changeset/)Merging to main lets the release workflow open a release PR (branch pnpm-release/main) and, once that merges, publish to npm via OIDC trusted publishing.
