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 小时
- 30 天内合并 PR
- 230
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
voidzero-dev/vite-plus#2097 · 10 条评论 · 2 个 reaction ·
维护者通常 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 个 reaction · 已指派 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 天内回复
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
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
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 66/100
维护者通常 1 天内回复