voidzero-dev / voidzero-dev/vite-plus
feat: support project-aware global shims for vp-installed global CLIs
- Lenguaje dominante
- Rust
- Estrellas
- 5.8k
- Forks
- 262
- Merge medio
- 23 h 41 min
- PR fusionados (30 d)
- 138
Descripción
## 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?
Guía de contribución
Línea de trabajo
Comienza con la referencia de bins globales conscientes del proyecto de pnpm y sigue cómo `vp i -g` instala actualmente las CLIs globales. Define el contexto del proyecto, el comportamiento de resolución, el manejo de la raíz del workspace y las expectativas de los shims multiplataforma antes de identificar los puntos de implementación. Se considera terminado cuando las CLIs instaladas globalmente se comportan como ejecutables normales y resuelven adecuadamente el contexto del proyecto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- cli, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100