Repository navigation
fix(ci): keep Vite config helpers dependency-free - #46067
StiensWout wants to merge 1 commit into
Conversation
Use Node filesystem and path helpers when selecting test files so bundled config loading does not resolve Effect from the workspace root. Co-authored-by: GPT 6.1 Sol <codex@openai.com>
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — The helper switches from Effect dependencies to Node built-ins for test-file discovery. Its new file-level diagnostic suppression requires human review to accept the exception and its scope. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
CI fails while loading the root Vite config because the bundled test-file helper imports
effectfrom the workspace root, where it is not a dependency. Task graph loading stops before any tasks run.Use Node filesystem and path APIs in the config helper, following the other bootstrap helpers. This removes its Effect and platform-node dependencies while preserving test-file selection and keeping the Vitest CLI parser lazy. Both root and web configs share the fix.
Validation: reproduced the missing
effecterror with the original helper loaded outside the scripts package, then confirmed the fixed helper loads there. Existing helper tests andpnpm exec vp run check:changedpass, covering formatting, lint, unused code, affected typechecks, and related tests. No full suite or app testing for this urgent bootstrap fix.Size: small, confined to a config helper with no interface changes. Reviewed locally; extended agent review was skipped for the requested urgent turnaround.
Created with GPT 6.1 Sol in the Codex harness, through T3 Code.