Support external `vp-<command>` executables, as Git and Cargo do
メンテナーはふだん 1 日以内に返信
@cpojer がすでに取り組んでいます。
2026年10月22日 から。
評価
この issue はまだ評価されていません。
説明
Problem
Workspace tool authors cannot expose a command such as vp pr gen: the global
CLI rejects pr before the workspace's JavaScript implementation can run.
Today our workspace runs the same tool with vp exec vpp pr gen.
Reproduction
With an executable named vp-pr installed in the workspace's node_modules/.bin,
vp pr --help should be able to run that executable with --help. With Vite+
1.3.0 installed, the current command exits 2 with error: Command 'pr' not found.
Patching the local dist/bin.js dispatcher does not help: it is never reached.
Checked source
Inspected the official repository at commit
733b973ebe26f097ebe007cb079b2ee64b2f7217 in ~/repo-references/vite-plus:
main.rs:522
callstry_parse_args_frombefore command execution.main.rs:537
handlesInvalidSubcommandas an error/suggestion. Only the successful parse
arm reachesrun_commandat line 583.cli.rs:69
declares the closedCommandsenum. It has no external-subcommand arm.cli.rs:1298
calls clap'stry_get_matches_fromandArgs::from_arg_matches.cli.rs:1179
already routesexecthrough the managed local executable path.
Proposal
Support Git/Cargo-style external subcommands: when no built-in matches foo,
resolve vp-foo using the same managed runtime and workspace executable
resolution as vp exec, then forward the remaining argv unchanged.
Built-ins retain precedence. Unknown names still fail with the existing useful
error when no executable exists. No implicit package download or install is
needed. Preserve cwd, -C, stdout/stderr, exit status, signals, --, and platform
executable/shim behavior. A locally installed extension should be explicitly
available in the workspace, not inferred from a matching package name.
This gives workspace extensions a natural command without modifying Vite+'s
built-in command set or maintaining an unreachable JavaScript dispatch patch.
Suggested acceptance cases
vp foo a --flag -- valueexecutesvp-foowith exact argument boundaries.- Existing built-ins win over a same-name executable.
- Workspace executable resolution and
-Cbehave likevp exec. - Missing executable retains the unknown-command error; no download occurs.
- Child exit code and termination signals propagate.
- Unix executables and Windows executable shims both work.
- 主要言語
- Rust
- スター
- 6.3k
- フォーク
- 283
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 230
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-plus のほかの issue
-
pending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
voidzero-dev/vite-plus#2882 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8対応中かも @john-okeefe が 2 日前に担当しました。 オープンcontribution welcome
voidzero-dev/vite-plus#3176 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
`vp run`: scripts get a non-blocking stdin (EAGAIN) when `run` tasks in vite.config.ts use constants対応中かも @wan9chi が 1 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
voidzero-dev/vite-plus#3155 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Document cross-platform `FOO=bar cmd` in task commands and scripts対応中かも @hyunbinseo が 3 日前に担当しました。 オープンdocumentation
voidzero-dev/vite-plus#3140 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
voidzero-dev/vite-plus#3137 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/vite-plus の issue をすべて見る
似ている issue
-
Docker host resolution missing default rootless Docker path対応中かも @500B が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
testcontainers/testcontainers-rs#1000 ·
メンテナーはふだん 3 日以内に返信
-
bug needs triage P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pbakaus/impeccable#1143 ·
メンテナーはふだん 1 日以内に返信
-
Bundled uv is never updated and trusts the compromised eMudhra certificates対応中かも @FabienDanieau が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信