Repository navigation
[vite-plugin v1 backport] Fix plugin E2E type errors - #17051
Conversation
|
|
Codeowners approval required for this PR:
|
There was a problem hiding this comment.
✅ Approved — Small type-only change to E2E tests with no runtime impact; no findings.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code reviewer: ✅ LGTM
No issues found.
Reviewed commit: a766c840
commit: |
|
@camc314 (verified original author), please check this v1 backport of #17046 and approve if it looks good. The two retained plugin E2E type fixes are unchanged, with both original diagnostics reproduced before and absent after. Other packages are not restored. No qualifying human ant-core approval was found: james-elicx approved the original but is not in the current ant-core membership. Only the verified original author is requested. Native stack #17050 is rooted at vite-plugin-v1. |
camc314
left a comment
There was a problem hiding this comment.
✅ I can't press the actual approve but changes LGTM
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Backports the two retained plugin E2E type fixes from #17046 unchanged: assert that the response reader exists before reading, and allow runCommand's cwd to be omitted as its callers already do. The original's other packages are absent public siblings or outside the maintained v1 workspace and are not restored. No runtime feature or unrelated test fix is included.
A strict TypeScript check using the bundler module resolver, resolveJsonModule and the existing E2E global setup reproduces exactly the original reader-possibly-undefined and optional-cwd diagnostics before this patch; the same command passes after it. pnpm check also passes (including build, types, lint and format). The predecessor build backport's pnpm test:ci passed all eight tasks. The package-manager E2E suite itself was not run; these edits are type-only.
Stacked in native stack #17050 rooted at vite-plugin-v1. Earlier #17012 supplies runtime dependencies; this PR does not repeat or revert those pins.
Note
This is a contribution from an AI agent: Codex.