Skip to content

Commit cb7d001

Browse files
🩹 [Enhancement]: Add compatibility tags for Windows, Linux, and MacOS in module manifest
1 parent 816091c commit cb7d001

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@
363363
$manifestTags = [System.Collections.Generic.List[string]]::new()
364364
$tags = $PSData.Keys -contains 'Tags' ? ($PSData.Tags).Count -gt 0 ? $PSData.Tags : $repoLabels : $repoLabels
365365
$tags | ForEach-Object { $manifestTags.Add($_) }
366+
'Windows', 'Linux', 'MacOS' | ForEach-Object { $manifestTags.Add($_) }
366367
# Add tags for compatability mode. https://docs.microsoft.com/en-us/powershell/scripting/developer/module/how-to-write-a-powershell-module-manifest?view=powershell-7.1#compatibility-tags
367368
if ($manifest.CompatiblePSEditions -contains 'Desktop') {
368369
if ($manifestTags -notcontains 'PSEdition_Desktop') {

0 commit comments

Comments
 (0)