voidzero-dev / voidzero-dev/vite-plus

feat: support project-aware global shims for vp-installed global CLIs

Offen
#2,427 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
5.8k
Forks
261
Ø Merge
1 T. 34 Min.
Gemergte PRs (30 T.)
135

Beschreibung

## 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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the pnpm project-aware global bins reference and trace how `vp i -g` currently installs global CLIs. Define the project context, resolution behavior, workspace-root handling, and cross-platform shim expectations before identifying implementation points. Done means globally installed CLIs behave as normal executables while resolving project context appropriately.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli, tooling
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.