Skip to content

Commit 3eef8a8

Browse files
authored
Fix the issue that * is not removed when migrate from generation to main (#21912)
1 parent a4f284f commit 3eef8a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/Gen2Master/MoveFromGeneration2Master.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ Function Move-Generation2Master {
105105
If ($Psd1Metadata.FunctionsToExport -Contains "*") {
106106
$Psd1Metadata.FunctionsToExport = ($Psd1Metadata.FunctionsToExport | Where-Object { $_ -ne "*" })
107107
}
108+
If ($Psd1Metadata.AliasesToExport.Length -ne 1) {
109+
$Psd1Metadata.AliasesToExport = @($Psd1Metadata.AliasesToExport | Where-Object { $_ -ne "*" })
110+
}
108111
Update-ModuleManifest -Path $SourcePsd1Path @Psd1Metadata
109112
Copy-Item -Path $SourcePsd1Path -Destination $DestPsd1Path
110113
#EndRegion

0 commit comments

Comments
 (0)