Upgrading Vite+
Use vp upgrade to update the global vp binary, and use Vite+'s package management commands to update the local vite-plus package in a project.
Overview
There are two parts to upgrading Vite+:
- The global
vpcommand installed on your machine - The local
vite-pluspackage used by an individual project
You can upgrade both of them independently.
Global vp
vp upgrade # upgrade to the latest version
vp upgrade --check # check for updates without installingRollback
Vite+ keeps the 3 most recent versions installed so you can revert quickly:
vp upgrade --rollbackOlder versions are pruned automatically after each upgrade. The active version and the previous version are always kept, so a rollback target is never removed.
Local vite-plus
Update the project dependency with the package manager commands in Vite+:
vp update vite-plusYou can also use vp add vite-plus@latest if you want to move the dependency explicitly to the latest version.
Updating Aliased Packages
Vite+ sets up an npm alias for its core package during installation:
viteis aliased tonpm:@voidzero-dev/vite-plus-core@latest
vp update vite-plus does not re-resolve this alias in the lockfile. To fully upgrade, update it separately:
vp update @voidzero-dev/vite-plus-coreOr update everything at once:
vp update vite-plus @voidzero-dev/vite-plus-coreYou can verify with vp outdated that no Vite+ packages remain outdated.