voidzero-dev / voidzero-dev/vite-plus
feat: support project-aware global shims for vp-installed global CLIs
- 主要言語
- Rust
- スター
- 5.8k
- フォーク
- 262
- 平均マージ
- 23時間 18分
- マージ済み PR(30日)
- 139
説明
## Summary
Add support in vite-plus for project-aware global shims for CLIs installed via `vp i -g`.
## pnpm reference
pnpm documents project-aware global bins here:
https://pnpm.io/global-packages#project-aware-global-bins
From the docs, the relevant behavior is:
- globally installed packages are isolated from each other
- bin shims are generated in the global bin directory
- those shims point into the appropriate install group
- the invoked CLI can operate with awareness of the current project context
## What we want for vite-plus
For CLIs installed via `vp i -g`:
- global shims should be available as normal executables
- when invoked inside a project, the shim/runtime should resolve against the current project context where appropriate
- the behavior should feel similar to local project bins, but for globally installed tooling
## Open questions
- Should vite-plus mirror pnpm's approach closely, or adapt it to vp's own installation/runtime model?
- What project context needs to be discovered at execution time?
- Are there edge cases around resolution, workspace roots, or cross-platform shim generation?
コントリビューションガイド
調査の方向性
pnpm のプロジェクトを認識するグローバル bin のリファレンスから始め、`vp i -g` が現在どのようにグローバル CLI をインストールしているかを追跡します。実装箇所を特定する前に、プロジェクトコンテキスト、解決動作、ワークスペースルートの扱い、クロスプラットフォーム shim に関する要件を定義します。グローバルにインストールされた CLI が通常の実行可能ファイルとして動作し、プロジェクトコンテキストを適切に解決できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- cli, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100