Describe the bug
The windows trampoline .exes in C:%HOMEPATH%\.vite-plus\bin is not regenerated after vite-plus upgrade. This causes old version behaviors even after upgrading vite-plus.
green:~\.vite-plus\bin$ ls | Get-FileHash
Algorithm Hash Path
--------- ---- ----
SHA256 F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 C:\Users\green\.vite-plus\bin\corepack.exe
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\node.exe
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\npm.exe
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\npx.exe
SHA256 F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 C:\Users\green\.vite-plus\bin\pnpm.exe
SHA256 F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 C:\Users\green\.vite-plus\bin\pnpx.exe
SHA256 64681EEFCF4F7C78B50A9BE5203F2F8056EB116CB54892908C322D06ED48134D C:\Users\green\.vite-plus\bin\vp-use.cmd
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\vp.exe
SHA256 9AA6750A7B2668968D06CBB9BFD9AD1C7BAA3212B01AD84739213E04BCD65163 C:\Users\green\.vite-plus\bin\vp.exe.1775561042.old
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\vpr.exe
SHA256 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 C:\Users\green\.vite-plus\bin\vpx.exe
SHA256 F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 C:\Users\green\.vite-plus\bin\yarn.exe
SHA256 F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 C:\Users\green\.vite-plus\bin\yarnpkg.exe
The ones with 9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429 is the trampoline for 0.1.16. The ones with F6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7 is the trampoline for 0.1.15.
Reproduction
It's not possible to provide in stackblitz.
Steps to reproduce
(I have not tried 1-4, but writing the theoretical steps)
- Install vite-plus v0.1.15
vp install -g corepack
corepack enable
corepack enable pnpm
vp upgrade
- Create
a.mjs and package.json below
- Run
pnpm run a (shows VITE_PLUS_HOME)
- Run
node a.mjs (shows VP_HOME)
// a.mjs
const envs = Object.entries(process.env).filter(
([key]) => key.startsWith("VP_") || key.startsWith("VITE_PLUS_"),
);
console.log(envs);
// package.json
{
"scripts": {
"a": "node a.mjs"
}
}
System Info
Environment:
Version 24.14.1
Source lts
Tool Paths:
node C:\Users\green\.vite-plus\js_runtime\node\24.14.1\node.exe
npm C:\Users\green\.vite-plus\js_runtime\node\24.14.1\npm.cmd
npx C:\Users\green\.vite-plus\js_runtime\node\24.14.1\npx.cmd
vp v0.1.16
Local vite-plus:
vite-plus Not found
Tools:
vite Not found
rolldown Not found
vitest Not found
oxfmt Not found
oxlint Not found
oxlint-tsgolint Not found
tsdown Not found
Environment:
Package manager Not found
Node.js v24.14.1
Used Package Manager
pnpm
Logs
Validations
Describe the bug
The windows trampoline
.exes inC:%HOMEPATH%\.vite-plus\binis not regenerated after vite-plus upgrade. This causes old version behaviors even after upgrading vite-plus.The ones with
9BF2F2C6BF2DAF547DE5EE8A6D62366A6F550DD3B2AFBEA056226915210F7429is the trampoline for 0.1.16. The ones withF6059DA233486AFCB70A7DCCDA40033ACEAB7E880A1D70A35CCF09D655C9C5E7is the trampoline for 0.1.15.Reproduction
It's not possible to provide in stackblitz.
Steps to reproduce
(I have not tried 1-4, but writing the theoretical steps)
vp install -g corepackcorepack enablecorepack enable pnpmvp upgradea.mjsandpackage.jsonbelowpnpm run a(showsVITE_PLUS_HOME)node a.mjs(showsVP_HOME)System Info
Used Package Manager
pnpm
Logs
Validations