Commit 1bf5d0f
committed
fix(create): stop forwarding
`formatDlxCommand` injected `--` between the package name and its
args on the npx path, producing `npx <pkg> -- <args>`. Per the npm
v8 `npx` docs, the documented form places `--` before the package
name; the trailing `--` is forwarded to the underlying binary.
Commander-based subcommand CLIs (e.g., `@tanstack/cli create`)
interpret it as end-of-options and promote subsequent flags into
positionals, exceeding the subcommand's arity.
Drop the `--` injection for npx; pnpm/yarn/bun paths unchanged.-- to npx-invoked remote templates1 parent 9b57c4b commit 1bf5d0f
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
0 commit comments