chore(turbo): pass through PATHEXT#2184
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved Single-line Turborepo configuration change that passes through the Windows PATHEXT environment variable for build compatibility. No runtime or production behavior impact. You can customize Macroscope's approvability policy. Learn more. |
On Windows, Turbo strict mode omits PATHEXT, so terminal-drawer commands with `dev:desktop` or `start:desktop` cannot resolve executables without explicit file extensions.
1c25204 to
2f36b31
Compare
What Changed
Add
PATHEXTtoglobalPassThroughEnvin turbo.json.Why
On Windows with
bun dev:desktoporbun start:desktop, Turbo strict mode omitsPATHEXT, so terminal-drawer commands cannot resolve executables in PATH without explicit file extensions.Expected:
Actual:

bun dev:desktopChecklist
I included before/after screenshots for any UI changes-- no UI changesI included a video for animation/interaction changes-- no animation changesValidation
bun fmtbun lintbun typecheckbun dev:desktop(on Windows)bun start:desktop(on Windows)After fix:

bun dev:desktopNote
Low Risk
Low risk config-only change that affects how Turborepo forwards environment variables, primarily impacting Windows command resolution.
Overview
Adds
PATHEXTto Turborepo’sglobalPassThroughEnvinturbo.json, ensuring all tasks inherit this variable from the invoking shell (notably fixing Windows executable resolution in strict env mode).Reviewed by Cursor Bugbot for commit 2f36b31. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Pass
PATHEXTthrough to all Turborepo tasks viaglobalPassThroughEnvAdds
PATHEXTtoglobalPassThroughEnvin turbo.json so all Turborepo tasks inherit thePATHEXTenvironment variable from the invoking shell. This is primarily relevant on Windows, wherePATHEXTcontrols which file extensions are treated as executable.Macroscope summarized 2f36b31.