Skip to content

fix(cli): make vpx run .cmd instead of Unix binary on Windows#1652

Merged
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
tobynguyen27:main
May 21, 2026
Merged

fix(cli): make vpx run .cmd instead of Unix binary on Windows#1652
fengmk2 merged 3 commits into
voidzero-dev:mainfrom
tobynguyen27:main

Conversation

@tobynguyen27
Copy link
Copy Markdown
Contributor

Fix #1651

On Windows, npm installs both an extensionless Unix shell script and a
.cmd shim in node_modules/.bin. The extensionless file was checked first
on all platforms, causing Windows to fail with "is not a valid Win32
application" (os error 193) when executing local binaries via vpx.

Fix by skipping the extensionless check on Windows entirely and instead
checking .cmd.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

👷 Deploy Preview for viteplus-preview processing.

Name Link
🔨 Latest commit 7dece33
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a0efc93c210940008b4f38f

@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented May 21, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

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

@tobynguyen27 Thanks!

@fengmk2 fengmk2 merged commit 1eb39c6 into voidzero-dev:main May 21, 2026
39 checks passed
Sign up for free to 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.

vpx runs Unix binary on Windows instead of .cmd file

2 participants