Skip to content

fix(cli): reuse the current Node runtime for built-in tools - #2673

Merged
fengmk2 merged 1 commit into
mainfrom
fix/reuse-cli-node-runtime
Sep 12, 2026
Merged

fix(cli): reuse the current Node runtime for built-in tools#2673
fengmk2 merged 1 commit into
mainfrom
fix/reuse-cli-node-runtime

Conversation

@fengmk2

@fengmk2 fengmk2 commented Sep 11, 2026

Copy link
Copy Markdown
Member

vp lint --lsp and vp fmt --lsp can fail when an editor supplies Node but node is absent from PATH.

Built-in tools now use process.execPath, passed from the JavaScript CLI through the native binding. This lets oxc-vscode#384 use VS Code's bundled Node without temporary runtime shims.

Resolver tests cover eight built-in commands. A CLI snapshot starts lint and format with a renamed Node executable and no node on PATH. Both language servers also passed requests under VS Code's bundled Node on macOS.

The 68 Rust tests, vp check, CLI Clippy, and snapshot comparison passed. The JavaScript suite passed 1,209 tests. One failure in resolve-core.spec.ts also occurs on unchanged main.

@github-actions

Copy link
Copy Markdown
Contributor

CLI artifact sizes (2c98b4c)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.14 MiB 2.14 MiB +37 B (+0.00%)
packages/core/dist Directory total 3.92 MiB 3.92 MiB 0 B (0.00%)
Combined package dist Directory total 6.07 MiB 6.07 MiB +37 B (+0.00%)
vp (Linux x64) Binary 11.14 MiB 11.14 MiB 0 B (0.00%)
vp (Linux x64) gzip -9 4.82 MiB 4.82 MiB 0 B (0.00%)
NAPI (Linux x64) Binary 32.03 MiB 32.03 MiB 0 B (0.00%)
NAPI (Linux x64) gzip -9 12.64 MiB 12.64 MiB +966 B (+0.01%)
vp (macOS ARM64) Binary 8.30 MiB 8.30 MiB 0 B (0.00%)
vp (macOS ARM64) gzip -9 4.20 MiB 4.20 MiB 0 B (0.00%)
NAPI (macOS ARM64) Binary 39.61 MiB 39.61 MiB 0 B (0.00%)
NAPI (macOS ARM64) gzip -9 16.96 MiB 16.96 MiB +774 B (+0.00%)
vp (Windows x64) Binary 9.02 MiB 9.02 MiB 0 B (0.00%)
vp (Windows x64) gzip -9 3.94 MiB 3.94 MiB +2 B (+0.00%)
NAPI (Windows x64) Binary 26.92 MiB 26.92 MiB +1.00 KiB (+0.00%)
NAPI (Windows x64) gzip -9 10.74 MiB 10.74 MiB +282 B (+0.00%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.03 KiB 7.03 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.52 MiB 4.52 MiB 0 B (0.00%)
Installer (Windows x64) gzip -9 2.11 MiB 2.11 MiB -1 B (-0.00%)

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-reuse-cli-node-runtime-viteplus-dev.voidzero-docs.workers.dev (commit 2c98b4c)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0c41b399-viteplus-dev.voidzero-docs.workers.dev 2c98b4c 2026-09-11T17:41:04.784Z Visit the dashboard ↗

@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests test: sfw labels Sep 12, 2026
@fengmk2
fengmk2 added this pull request to stack #2674 September 12, 2026 01:30
@fengmk2
fengmk2 marked this pull request as ready for review September 12, 2026 03:02
@fengmk2 fengmk2 self-assigned this Sep 12, 2026
@fengmk2
fengmk2 merged commit e992de3 into main Sep 12, 2026
158 of 187 checks passed
@fengmk2
fengmk2 deleted the fix/reuse-cli-node-runtime branch September 12, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: sfw

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants