Repository navigation
Vite+ 1.8.0 runs project package managers from PATH when no global vp is installed, instead of downloading them, and runs project-local vp dev in one process, so a SIGTERM to it stops the dev server. vp migrate also offers to group Vite+ updates in Renovate.
Features
- Without a global
vp, thevite-pluspackage uses the package managers onPATHand no longer downloads them into Vite+ directories. With a globalvp, it follows that installation's mode: managed mode downloads as before, and system-first mode (vp env off) prefers the system package manager and falls back to a download. Without a globalvp,vp createandvp migratedefault to the first installed of pnpm, npm, Yarn, and Bun, and the package-manager selector marks the othersnot installed(#3386, #3389), by @liangmiQwQ and @SaKaNa-Y:- If no global
vpis installed and the project's package manager is not onPATH, package-manager commands,vp run, andvp execfail with a message instead of downloading it. Install that package manager or the globalvp. Without a globalvp, a project that selects no package manager uses npm. - A system package manager runs as it is, even when its version differs from the project's pin, and the package manager applies its own pin check.
vp createpins the version of the system package manager that installs the new project.
- If no global
vp migrateoffers to add Renovate'sgroup:vitePluspreset to an existing Renovate config, so Renovate groups eligible Vite+ and Vitest updates. An interactive run asks first (default Yes), and a non-interactive run adds it. Projects that already use Vite+ can runvp migrate --fullto add it (docs) (#3485), by @fengmk2.- A command that puts
--filter,-r,-t,-w, or--fail-if-no-matchbeforerun, such asvp --filter backend run dev, suggestsvp run --filter backend dev. In an interactive terminal, the globalvpasks whether to run it. In other cases, and in the project-local CLI, the command prints the suggestion and exits with code 2 (#3500), by @naokihaba. - Upgrade the bundled tools (#3472, #3490, #3502, #3513, #3546), by @voidzero-guard[bot] and @fengmk2:
Tool Version What changes for you Vitest 5.1.0→5.1.1Parses --bailcorrectly, applies--shardbefore the run starts, and gives each test attempt a newsignaltsrs 7.1.0-beta.tsrs2→7.1.0-beta.tsrs4Type checks report global and declaration diagnostics, type errors show the message chain as tscprints it, and suggestion diagnostics no longer fail type checkslint-staged 17.6.1→17.6.2With git commit <file>,vp stagedstages task edits only for those files- If your CI runs
vp check, run it after you upgrade: tsrs now reports global and declaration diagnostics, so the type check can report errors in code that passed before.
- If your CI runs
Fixes & Enhancements
- Security: with
VP_LOG=debug,vp createno longer prints the environment variables that it passes to the template command, which could include secrets such asNPM_TOKEN(#3552), by @jong-kyung. - Unpinned npm, pnpm 11 and earlier, and Yarn downloads are verified against the registry
dist.integritybefore extraction, as the Bun and pnpm 12+ platform packages already were. When the version document omits the integrity or returns 404, Vite+ reads the package document instead. When neither gives it, the install fails withPackageManagerIntegrityUnavailablebefore anything downloads. Pinned npm, pnpm 11 and earlier, and Yarn downloads do not change (#3547, #3553), by @jong-kyung and @fengmk2. devEngines.runtime.versionaccepts only semver versions and ranges, as in npm and pnpm. Aliases such aslts/*andlatestno longer resolve in this field, and an invalid value follows the entry'sonFail: with the defaulterror, the command fails with a message that suggestsvp env pin lts..node-version,.nvmrc,vp env pin lts, andvp env use ltskeep alias support (#3489), by @voidzero-bot[bot] and @fengmk2.- Project-local
vp devruns Vite in the launcher process, so aSIGTERMto that process stops the dev server and frees the port instead of leaving Vite running.--inspect-brkand--cpu-profnow cover Vite. The server listened after 109 ms instead of 137 ms with an empty compile cache, and used 120 MB instead of 168 MB after startup. With the globalvp, aSIGTERMto the globalvpprocess still stops onlyvp(#3512), by @fengmk2. vp devandvp buildkeep the--separator when they pass custom arguments to Vite, so Vite no longer takes an argument after--as the project path, and the Vite config can read the arguments fromprocess.argv(#3497), by @fengmk2.- After a Node.js version change,
npm install -g <pkg>moves the package's link in the Vite+bindirectory to the new copy and prints a note. Before, the command kept running the copy installed under the previous Node.js version. A dry run leaves the links unchanged (#3283), by @mondaychen. - Global packages installed through an npm alias, such as
vp install -g typescript@npm:cowsay, keep the alias invp list -g,vp outdated -g, andvp update -g. Aliases installed before this release need one reinstall (#3480), by @liangmiQwQ. vp install -g --forcechecks for unmanaged files in the bin directory before it uninstalls a package that owns a conflicting binary, so a rejected installation leaves the existing packages installed (#3504), by @jong-kyung.vp update -gwith only local paths or packages that are not installed no longer updates every other global package too (#3551), by @jong-kyung.vp add --save-prodwith npm moves a package that is already indevDependenciesoroptionalDependenciesintodependencies, as pnpm does (#3515), by @liangmiQwQ.vp install <packages>fails when more than one of--prod,--dev,--save-peer, and--save-optionalis given, asvp adddoes, instead of using one and ignoring the others (#3516), by @liangmiQwQ.vp install --frozen-lockfile --lockfile-onlywith npm 11.16.0 or later checks that the lockfile matchespackage.jsonwithnpm ci --dry-run --ignore-scripts. Before, it ran a plainnpm ci, which removednode_modules, reinstalled dependencies, and ran lifecycle scripts. With older npm, Vite+ rejects this combination (#3518), by @liangmiQwQ.- In Yarn projects where
yarnPathselects another Yarn release thanpackageManager, Vite+ selects commands and options for the release that runs. Before, a Yarn 2 launcher with a Yarn 3yarnPathskippedvp unlinkwith a warning and exited with code 0. When Vite+ downloaded the Yarn launcher, it runsyarn --versionthrough it before each command in these projects (#3532), by @jong-kyung. - A task command that starts with
vp -C <dir>, such asvp -C . check, keeps the cache configuration of its subcommand, so a change to an environment variable that the subcommand tracks now misses the cache (#3537, #3536, vite-task#1005), by @jong-kyung. - On Windows, tasks with automatic file-access tracking can run Git Bash's
shand other MSYS2 or Cygwin programs, which aborted withWin32 error 487(vite-task#952, #3529), by @ReemX. - On Linux, when the
seccompfilter for file-access tracking cannot be installed, for example in rootless bubblewrap, a task runs untracked and is reported as not cached, instead of failing to spawn child processes (vite-task#701), by @lifeiscontent. vp createcompletes the catalog entries that new packages reference in existing Yarn and Bun workspaces, so nocatalog:reference stays unresolved. On Bun 1.4.0 and later,vp createandvp migrateno longer write an entry to bothcatalogandcatalogs.default, which made the install fail (#3473), by @jong-kyung.- After a migration from Husky,
vp configandvp hooks enablereplace a leftovercore.hooksPathof.huskyor.husky/_, so the Vite+ hooks run. They do this only when no hook scripts remain directly under.husky/and no package manifest declares Husky (#3344), by @semimikoh and @fengmk2. - Git hooks that a package in a subdirectory installs still find that package's commands after the hook runs
cd(#3451), by @voidzero-bot[bot] and @fengmk2. vp migratekeeps imports in files where the lint configuration turns offvite-plus/prefer-vite-plus-imports, with the samelint.overridesorder asvp lint --fix, and keeps the Vitest dependencies that those imports need (#3411), by @fengmk2.vp migratemerges.oxlintrc.jsonintovite.config.tswhen a value contains text such as$200or$OUT_DIR/**, and keeps those values as written (#3046), by @BenjyLimmy and @fengmk2.vp migrateno longer fails with aTypeErrorwhen an npm or Bun project sets an object underoverrides.viteoroverrides.vitest. It updates the"."entry and keeps the child overrides (#2267), by @charpeni and @fengmk2.vp migrateandvp createreplace a dangling agent instruction symlink, such asCLAUDE.md, with a link toAGENTS.mdinstead of crashing withEEXIST(#3544), by @thejesh23.vp createaccepts target directory names that contain two dots, such asmy..lib. A..path segment is still rejected (#3545), by @thejesh23.vp dlxworks with npm 6: it runsnpx, becausenpm execfirst shipped in npm 7 (#3479), by @jong-kyung.- In system-first mode (
vp env off), package-manager commands keep the system package manager and Node.js directories at theirPATHpositions, so install scripts no longer run a Node.js from the package manager's directory instead of the selected one (#3447), by @liangmiQwQ. - In a project without the global
vp,vp env,vp upgrade, andvp implodeprint the installation command for the current platform next to the documentation link (#3448), by @liangmiQwQ. stream.messagein@voidzero-dev/vite-plus-promptswrites to theoutputthat the caller selects instead of stdout, and keeps words together when that output has no column count (#3466), by @SaKaNa-Y.vp checkreads thelint,fmt, andcheckblocks of the root Vite config statically when it can, asvp rundoes, and loads the config through Vite only when a block cannot be read statically. On npmx.dev,vp check --no-linttook 559 ms instead of 835 ms. As withvp run, the static path does not see blocks that a plugin adds in itsconfighook (#3487), by @jong-kyung.vp configstarts 9 Git processes instead of 15 when the hooks are already installed. On macOS,vp config --no-agenttook 200 ms instead of 260 ms (#3501), by @jong-kyung.- The Vitest 5 step of
vp migrateno longer slows down with the square of the number of findings in a file (#3481), by @jong-kyung. - A registry redirect to a deeply nested
blob:URL no longer makesvpexit with a stack overflow (RUSTSEC-2026-0592) (#3540), by @fengmk2. - The task cache uses SQLite 3.54.1 through
rusqlite0.41, which fixes RUSTSEC-2026-0459 (vite-task#990), by @fengmk2.
Refactor
vp createruns remote templates throughvp dlx, which selects the package-manager command (#3478), by @jong-kyung.vpcommands,vp env, and the shims select the project Node.js version through one code path.vp env current,vp env which,vp env use, and the shims now also warn about an invalidengines.node, andvpcommands print that warning once instead of twice (#3498), by @fengmk2.
Docs
- Show how to group Vite+ updates in Renovate with
group:vitePlus, and what to check before you merge an update (#2463), by @fengmk2. - Add a guide for replacing nvm or fnm with
vp env(#3257), by @fengmk2. - Show how to restore generator outputs that automatic output tracking leaves out of the cache (#3483), by @voidzero-bot[bot] and @fengmk2.
- Document offline CI installs with a private registry, and the files to mirror for a fresh global CLI installation (#3520), by @fengmk2.
- List the network hosts to allow through a firewall (docs) (#3534), by @voidzero-bot[bot].
- Note that Yarn and Bun keep an existing entry in its section for
vp add --save-prod(#3517), by @liangmiQwQ. - Clarify which dependency sections
vp remove -D,-O, and-Pchange on each package manager (#3527), by @SaKaNa-Y. - Add tsrs and oxc-node to the README toolchain list (#3494), by @jong-kyung.
Chore
- Replace the unmaintained
chronocrate withjiffin the global CLI (RUSTSEC-2026-0543) (#3496), by @voidzero-bot[bot] and @fengmk2. - Stop installing and tracking the legacy
oxlint-tsgolintbackend in the repository.vp migratestill removes it from projects (#3531), by @voidzero-guard[bot] and @fengmk2. - Update Rust dependencies, including
testing_macros3 (#3541, #3543), by @renovate[bot]. - Update
cargo-xwinto 0.24.1 and pin it to exact releases (#3542), by @renovate[bot] and @fengmk2. - Keep the Homebrew formula passing
brew styleafter a new Homebrew check, and run the Homebrew installation tests on related changes (#3550), by @voidzero-bot[bot] and @fengmk2. - Track tsrs through its
latesttag in the dependency upgrade workflow (#3488), by @fengmk2. - Use the Oxc triage action and GLM-5.3 for issue triage (#3508), by @fengmk2.
- Remove obsolete
typosexceptions (#3519), by @liangmiQwQ.
Bundled Versions
| Tool | Version | Source | Changelog |
|---|---|---|---|
| vite | 8.3.8 |
b39e6e6 |
unchanged |
| rolldown | 1.2.19 |
b9c75dd |
unchanged |
| oxc-node | 1.0.2 |
16c0f34 |
unchanged |
| tsdown | 0.23.4 |
npm | unchanged |
| vitest | 5.1.1 |
npm | 5.1.1 |
| oxlint | 1.94.0 |
npm | unchanged |
| tsrs | 7.1.0-beta.tsrs4 |
npm | 7.1.0-beta.tsrs3, 7.1.0-beta.tsrs4 |
| oxfmt | 0.79.0 |
npm | unchanged |
Upgrade
vp upgradeIn each project, run vp migrate to update vite-plus, the vite alias to @voidzero-dev/vite-plus-core@8.3.8001, and the Vitest pin together (guide).
New Contributors
@mondaychen, @ReemX, @BenjyLimmy, @thejesh23
Full Changelog: v1.7.0...v1.8.0
Published Packages
@voidzero-dev/vite-plus-core@8.3.8001vite-plus@1.8.0create-vite-plus@1.8.0
Installation
macOS/Linux:
curl -fsSL https://vite.plus | bashHomebrew (macOS/Linux):
brew tap voidzero-dev/vite-plus https://github.com/voidzero-dev/vite-plus
brew install voidzero-dev/vite-plus/vpSee the Homebrew guide to switch from the script installer or the Homebrew Core vite-plus formula.
Windows:
irm https://vite.plus/ps1 | iexOr download and run vp-setup.exe from the assets below.
Docker:
docker run --rm -it -v "$PWD:/app" -w /app ghcr.io/voidzero-dev/vite-plus:1.8.0 vp buildRun any vp command without installing it; see the Docker guide for more.
Create a New App
Start a project without installing the global vp: create-vite-plus runs vp create through your package manager.
pnpm create vite-plus vite:application --directory my-app
cd my-app && pnpm exec vp devRun the command without arguments to pick a template interactively, and see the create guide for other package managers, templates, and options.