voidzero-dev / voidzero-dev/vite-plus

vp create with non-global package manager

Aperta
#1,239 3 commenti 1 reazione 1 assegnatario Rivendicata da @fengmk2 Vedi su GitHub
pending triage
Lingua principale
Rust
Stelle
5.8k
Fork
261
Merge medio
1g 34m
PR unite (30g)
135

Descrizione

### Description

`vp create` works perfectly when I have a global package manager. Conversely, if I try to create a project using vp create and then install a package manager for per-project mode using methods like mise, it fails.

The experience would be much better if I could start working without a pre-installed package manager, as I've always installed package managers per-project mode without a global package manager (except for npm).

### Suggested solution

1. During `vp create` when selecting a package manager:
- It may check if the user has a global package manager, and provides their selections.
- If no other global package manager exists, it will fall back to the npm package manager.

2. When `vp` acts as a package manager:
- It provides a padding for vp, providing the functionality to download a package manager.
- `vp` itself is a package manager (requiring `vp` to implement functions similar to npm, pnpm, yarn, etc.).

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.