Skip to content

Commit 673628e

Browse files
authored
Fix PowerShell installation (#16164)
* Defer findPowershell to layoutMSRNCxx * Change files
1 parent 2a943fc commit 673628e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Defer findPowershell to layoutMSRNCxx",
4+
"packageName": "react-native-windows",
5+
"email": "julio.rocha@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/just-task.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ function codegen(test) {
4545
);
4646
}
4747

48-
const powershell = findPowerShell();
49-
5048
function layoutMSRNCxx() {
5149
if (require('os').platform() === 'win32') {
50+
const powershell = findPowerShell();
5251
execSync(
5352
`"${powershell}" -NoProfile .\\Scripts\\Tfs\\Layout-MSRN-Headers.ps1 -GenerateLocalCxx`,
5453
{

0 commit comments

Comments
 (0)