voidzero-dev / voidzero-dev/vite-plus

Re-delegate elicited app targets through full CLI resolution

オープン
#2,057 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
5.8k
フォーク
262
平均マージ
23時間 18分
マージ済み PR(30日)
139

説明

Follow-up to #2031, from Codex review round 7. When a bare app command at a root is retargeted by target elicitation (defaultPackage, picker, auto-select), the binding swaps the spawn cwd and PWD for the tool, but the executing local CLI, its Node runtime, and PATH were already resolved for the invocation directory.

Within one workspace this matches the supported single-Vite+-version model and the behavior is correct. The gap is the non-workspace framework shape: a root whose vite.config.ts points defaultPackage at a directory that carries its own vite-plus install or runtime pin (.node-version, devEngines.runtime). There, `cd && vp build` resolves that local install and runtime, while `vp build` at the root elicits inside the CLI chosen at the root (possibly the global bundled one), so versions can skew.

Candidate fix: when elicitation returns a target directory, re-delegate as if the user had run `vp -C ` from the top: the global binary re-runs local-CLI and runtime resolution from the target before dispatching (needs a signal across the NAPI boundary, or the global CLI performing elicitation for the bare-at-root case before choosing the local CLI). The RFC documents the current scoping in the equivalence section.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

RFC の equivalence セクションを読み、その後、`vp -C ` に対して使用される target elicitation とローカル CLI/runtime の解決を追跡します。vite.config.ts で defaultPackage を設定している root に対する `cd && vp build` と比較します。完了条件は、elicitation された target が dispatch 前に自身のローカル CLI、Node runtime、PATH を再解決することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, rust, typescript
領域
build-system, cli, tooling
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。