Skip to content

Commit db4e395

Browse files
🩹 [Refactor]: Add check for PSEdition to determine Windows environment in Build-PSModuleRootModule.ps1
1 parent 8e5662f commit db4e395

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎scripts/helpers/Build/Build-PSModuleRootModule.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ $script:PSModuleInfo = Test-ModuleManifest -Path "$PSScriptRoot\$baseName.psd1"
153153
$script:PSModuleInfo | Format-List | Out-String -Stream | ForEach-Object { Write-Debug $_ }
154154
$scriptName = $script:PSModuleInfo.Name
155155
Write-Debug "[$scriptName] - Importing module"
156+
if ($PSEdition -eq 'Desktop') {
157+
$IsWindows = $true
158+
}
156159
'@
157160
#endregion - Module post-header
158161

0 commit comments

Comments
 (0)