Skip to content

Commit a5cd81f

Browse files
🪲 [Fix]: Fix Manifest auto calculated conditions (#31)
## Description - Fix Manifest auto calculated conditions ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas
1 parent f2940d5 commit a5cd81f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/helpers/Build/Build-PSModuleManifest.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ function Build-PSModuleManifest {
211211
Write-Verbose "[CompatiblePSEditions] - Defaulting to 'Core', as no PSEdition was specified and PowerShellVersion > 5.1"
212212
$capturedPSEdition = @('Core')
213213
}
214-
if ($capturedPSEdition.count -eq 0 -and $manifest.PowerShellVersion -lt '6.0') {
215-
Write-Verbose "[CompatiblePSEditions] - Defaulting to 'Desktop', as no PSEdition was specified and PowerShellVersion < 6.0"
216-
$capturedPSEdition = @('Desktop')
217-
}
218214
$manifest.CompatiblePSEditions = $capturedPSEdition.count -eq 0 ? @('Core', 'Desktop') : @($capturedPSEdition)
219215
$manifest.CompatiblePSEditions | ForEach-Object { Write-Verbose "[CompatiblePSEditions] - [$_]" }
220216

0 commit comments

Comments
 (0)