You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- split the required-value flag table per forwarded tool: Vite commands and
pack have different flags (--env-file/--on-success/--copy/... for pack,
and Vite's -d/--debug is optional-value so it no longer consumes), plus
pack's --env.NAME <value> pattern flags
- bin/vpr: a bare 'vpr -C' with no directory no longer inserts run into the
-C value position; bin.ts reports the missing-argument error
Copy file name to clipboardExpand all lines: rfcs/cwd-flag.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,7 +246,7 @@ Rejected alternatives: repurposing the app-command positional to mean "run there
246
246
247
247
### Target directory resolution
248
248
249
-
An app command invocation is **bare** when it has no `-C` and no positional target (no Vite `[root]`, no pack entries). Flags keep it bare, including known value-taking flags together with their values (`--port 3000`, `--mode production`); a token following an unknown or optional-value flag is ambiguous with a positional target and conservatively counts as one. For `vp dev` / `build` / `preview` / `pack`, the target directory is resolved in this order:
249
+
An app command invocation is **bare** when it has no `-C` and no positional target (no Vite `[root]`, no pack entries). Flags keep it bare, including the forwarded tool's known required-value flags together with their values (`--port 3000` for Vite commands, `--env-file .env` for pack); a token following an unknown or optional-value flag is ambiguous with a positional target and conservatively counts as one. For `vp dev` / `build` / `preview` / `pack`, the target directory is resolved in this order:
250
250
251
251
1.**`-C <dir>`**: run there. Never triggers the picker.
252
252
2.**Positional target present**: forward as today, upstream semantics, vp does not interfere.
0 commit comments