Skip to content

fix(cli): expose configured package manager to direct commands#1696

Draft
jong-kyung wants to merge 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/direct-package-manager-path
Draft

fix(cli): expose configured package manager to direct commands#1696
jong-kyung wants to merge 3 commits into
voidzero-dev:mainfrom
jong-kyung:fix/direct-package-manager-path

Conversation

@jong-kyung
Copy link
Copy Markdown
Collaborator

Summary

Direct built-in commands like vp test --coverage now expose the package manager declared in the workspace root package.json#packageManager to child processes.
This allows tools such as Vitest coverage to spawn the configured package manager without failing with spawn pnpm ENOENT.

Changes

  • Prepends the explicitly configured package manager bin directory to the direct
    command environment
  • Applies to direct built-ins such as vp test, vp build, vp lint, etc.
  • Uses only explicit package.json#packageManager

Fixes #1690.

Prepend the managed package manager bin from an explicit packageManager field to direct built-in command environments so tools spawned by vp test can find the configured package manager without relying on the user's shell PATH.

Keep the behavior limited to explicit packageManager metadata and avoid lockfile inference or package.json mutation.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit d056548
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a16ad9f53038e00089e1e73
😎 Deploy Preview https://deploy-preview-1696--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@jong-kyung
Copy link
Copy Markdown
Collaborator Author

@codex review

@jong-kyung jong-kyung self-assigned this May 27, 2026
@jong-kyung jong-kyung changed the title Fix/direct package manager path fix(cli): expose configured package manager to direct commands May 27, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ 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".

@jong-kyung jong-kyung marked this pull request as ready for review May 27, 2026 07:11
@jong-kyung jong-kyung marked this pull request as draft May 27, 2026 07:12
@jong-kyung jong-kyung force-pushed the fix/direct-package-manager-path branch from ea6bbba to e720b64 Compare May 27, 2026 07:22
@jong-kyung jong-kyung force-pushed the fix/direct-package-manager-path branch from e720b64 to efad700 Compare May 27, 2026 07:26
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.

Coverage reporter installation fails in vp test --coverage

1 participant