voidzero-dev / voidzero-dev/vite-plus

vp create with non-global package manager

Open
#1,239 3 comments 1 reaction 1 assignee Claimed by @fengmk2 View on GitHub
pending triage
Dominant language
Rust
Stars
5.8k
Forks
261
Avg merge
1d 34m
Merged PRs (30d)
135

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.