Skip to content

Commit 3c72af8

Browse files
Nitin-100Nitin Chaudhary
andauthored
Fix PowerShell Export-ModuleMember error preventing developer mode enablement 15297 (#15306)
* Fix PowerShell Export-ModuleMember error Rename WindowsStoreAppUtils.ps1 to .psm1 and update reference. Export-ModuleMember can only be used inside PowerShell modules. Fixes #15297 * Change files --------- Co-authored-by: Nitin Chaudhary <nitchaudhary@microsoft.com>
1 parent 5701641 commit 3c72af8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "Fix PowerShell Export-ModuleMember error",
4+
"packageName": "@react-native-windows/cli",
5+
"email": "nitchaudhary@microsoft.com",
6+
"dependentChangeType": "none"
7+
}

packages/@react-native-windows/cli/src/utils/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function getWindowsStoreAppUtils(options: RunWindowsOptions) {
181181
'..',
182182
'src',
183183
'powershell',
184-
'WindowsStoreAppUtils.ps1',
184+
'WindowsStoreAppUtils.psm1',
185185
);
186186
execSync(
187187
`${powershell} -NoProfile Unblock-File '${windowsStoreAppUtilsPath}'`,

0 commit comments

Comments
 (0)