Make the Metro config's PowerShell path lookup lazy again, to stop spamming errors on macOS #16430

Open
shirakaba opened 8:15am on September 5, 2026 wants to merge 30 Δ into microsoft/react-native-windows main from
codex/defer-powershell-discovery

Pull request #16430 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 30
Maximum comment count per PR 10 7
Pull request maximum business days between activity 3 10
Pull request maximum business days open 5 10

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
80 packages/@react-native-windows/cli/src/commands/healthCheck/healthChecks.ts
packages/@react-native-windows/cli/src/utils/commandWithProgress.ts
1

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Qualified function name View whole function Lines removed Lines added Final line count
getHealthChecksUnsafe 0 2 61
runPowerShellScriptFunction 0 1 35