Skip to content

Windows trampoline .exe is not regenerated after vite-plus upgrade #1349

@sapphi-red

Description

@sapphi-red

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)

  1. Install vite-plus v0.1.15
  2. vp install -g corepack
  3. corepack enable
  4. corepack enable pnpm
  5. vp upgrade
  6. Create a.mjs and package.json below
  7. Run pnpm run a (shows VITE_PLUS_HOME)
  8. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions