Skip to content

fix: support yarn pnp cli delegation#1103

Open
Salnika wants to merge 1 commit intovoidzero-dev:mainfrom
Salnika:fix/yarn-pnp-cli-delegation
Open

fix: support yarn pnp cli delegation#1103
Salnika wants to merge 1 commit intovoidzero-dev:mainfrom
Salnika:fix/yarn-pnp-cli-delegation

Conversation

@Salnika
Copy link
Contributor

@Salnika Salnika commented Mar 22, 2026

Summary

This PR adds Yarn PnP support to local CLI delegation.

It makes delegated JS commands run through a Yarn-aware local execution path for Yarn PnP projects, adds a delegate bootstrap that resolves the local vite-plus CLI from the project context, and keeps Vite config loading compatible with the current parent-directory config traversal.

It also adds regression coverage for the delegate bootstrap and for the Yarn PnP monorepo create flow.

@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 1e06cb7
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c06c575dd61f000877742e

@fengmk2
Copy link
Member

fengmk2 commented Mar 23, 2026

Similar issues like #640 could be fixed after this pull request?

@Salnika
Copy link
Contributor Author

Salnika commented Mar 23, 2026

@fengmk2 it should fix #640 too I think, if not I can have a look on that subject too

@fengmk2
Copy link
Member

fengmk2 commented Mar 23, 2026

Support for yarn pnp currently needs to wait for Vite's final decision #640 (comment), so we will not be dealing with the current PR for now.

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.

2 participants