fix(cli): forward flags in npm exec hints
What and why
execCommand('npm', ...)omitted npm's--separator. npm 11 consumed flags from the suggested direct command, so--headednever reachede2e run.- Add the separator to npm CLI hints from
run,list, andinit. Update the matching tests, CLI reference, bundled skill, and patch changeset.
Verified
Ran it locally: yes
-
On Windows with Node 24.19.0, npm 11.6.2, and the built
e2e0.17.0 installed in a scratch project, I ran both commands. The observede2eargument vectors were:main hint this branch npm exec e2e run --headed→["run"]npm exec -- e2e run --headed→["run","--headed"] -
The same setup printed npm's
11.6.2fornpm exec e2e --versionand e2e's0.17.0fornpm exec -- e2e --version. -
Rebuilt the CLI and triggered its forwarded-flag error in an npm project. It exited 2 and printed
Run the CLI directly instead: npm exec -- e2e run --headed. -
pnpm build,pnpm --filter e2e run typecheck, and the focusedpackage-manager, CLI flag-hint, and init-hint tests passed. -
The full local Windows gate did not pass:
pnpm checkstopped at dead-code analysis ofscripts/check-dist.tsandscripts/stamp-dist.ts; docs validation could not load the installed Windowssharpbinary; the broad unit suite had 44 failures across 14 files, including symlink permission errors. The focused tests above passed.
Checklist
- Changeset added for the published
e2epackage. - CLI reference and bundled skill updated.
- Breaking change: none.
- Public type, wire, or engine contract change: none.