voidzero-dev / voidzero-dev/vite-plus

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

Open
#2,427 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
5.8k
Forks
261
Avg merge
1d 34m
Merged PRs (30d)
135

Description

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

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.