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

Offen
#2,427 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

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

Rechercherichtung

Beginne mit der Referenz zu den projektbewussten globalen Bins von pnpm und verfolge, wie vp i -g derzeit globale CLIs installiert. Definiere den Projektkontext, das Auflösungsverhalten, den Umgang mit dem Workspace-Root und die Erwartungen an plattformübergreifende Shims, bevor du Implementierungspunkte identifizierst. Als erledigt gilt die Aufgabe, wenn global installierte CLIs sich wie normale ausführbare Dateien verhalten und den Projektkontext angemessen auflösen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

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?
Vorherrschende Sprache
Rust
Sterne
6.5k
Forks
297
Ø Merge
20 Std. 18 Min.
Gemergte PRs (30 T.)
236

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/vite-plus

Alle Issues in voidzero-dev/vite-plus

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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