Skip to content

feat: add VP_VERSION env var for install script compatibility - #40

Merged
fengmk2 merged 2 commits into
mainfrom
feat/vp-env-var-compat
Mar 29, 2026
Merged

feat: add VP_VERSION env var for install script compatibility#40
fengmk2 merged 2 commits into
mainfrom
feat/vp-env-var-compat

Conversation

@fengmk2

@fengmk2fengmk2 commented Mar 29, 2026

Copy link
Copy Markdown
Member

Summary

Test plan

🤖 Generated with Claude Code

Set both VP_VERSION (new) and VITE_PLUS_VERSION (legacy) when invoking
the install script, so the action works with vite-plus versions before
and after the VP_* env var rename.
Ref: voidzero-dev/vite-plus#1166
@fengmk2fengmk2 self-assigned this Mar 29, 2026
CopilotAI review requested due to automatic review settings March 29, 2026 14:17

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Action’s Vite+ installation step to be compatible with vite-plus versions before/after the upstream environment variable rename by setting both the new and legacy version env vars when running the install script.

Changes:

  • Set both VP_VERSION and legacy VITE_PLUS_VERSION in the install script environment.
  • Add a TODO to remove the legacy env var once older vite-plus versions are no longer supported.
  • Regenerate dist/index.mjs to reflect the runtime change (action entrypoint).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
src/install-viteplus.tsPass both new/legacy version env vars into the install script invocation.
dist/index.mjsCompiled bundle updated to include the new env var behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadsrc/install-viteplus.ts Outdated
Comment threadsrc/install-viteplus.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: MK (fengmk2) <fengmk2@gmail.com>
CopilotAI review requested due to automatic review settings March 29, 2026 14:22

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2
fengmk2 merged commit e34774b into mainMar 29, 2026
39 checks passed
@fengmk2
fengmk2 deleted the feat/vp-env-var-compat branch March 29, 2026 14:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@fengmk2