Separate `system-first` shims from binary directory
Maintainer thường phản hồi trong vòng 1 ngày
@liangmiQwQ đang làm issue này rồi.
Từ ngày 19/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Currently, when users set node/pm management mode to system-first, Vite+ will still create its shim under the bin_dir, which is put at the front of PATH. And then these shims will search node in the rest of PATH.
This confuses users semantically, as which node shows the path to Vite+ binary but it actually runs the . What's more, it causes infinite recursion problem (#2728).
My proposal is to separate system-first shims from the Vite+'s main bin dir. All binaries should be put in a separate directory named like system-first-bin, which should be put at last of PATH, so users can use their system node/pm first, and fall back to Vite+'s tools if they don't have. (Keep the current behavior)
vp env on / vp env off need to refresh the shims and put them at the right places.
Also, all binaries should use Vite+'s own downloaded version. Logic like finding system node / pnpm can be gone.
This proposal essentially is to re-implement the system-first mode by leveraging operating system capabilities. It can also simplify the architecture, improve the performance and reduce confusion.
Not sure whether this brings breaking change, need to confirm whether to implement before RC (cc @fengmk2)
- Ngôn ngữ chính
- Rust
- Star
- 5.8k
- Fork
- 267
- Merge trung bình
- 20 giờ 30 phút
- Pull request đã merge (30 ngày)
- 144
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
voidzero-dev/vite-plus#2854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
voidzero-dev/vite-plus#2849 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voidzero-dev/vite-plus#2801 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#2097 · 10 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
voidzero-dev/vite-plus#2850 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Automattic/harper#4503 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
tobi/walgit#84 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày