File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,19 +214,19 @@ function Build-Module {
214
214
$ParseResult | MoveUsingStatements - Encoding " $ ( $ModuleInfo.Encoding ) "
215
215
216
216
if (-not $ModuleInfo.IgnoreAlias ) {
217
- $AliasesToExport = ( $ParseResult | GetCommandAlias).Values.Where({ $null -ne $_ })
217
+ $AliasesToExport = $ParseResult | GetCommandAlias
218
218
}
219
219
220
220
# If there is a PublicFilter, update ExportedFunctions
221
221
if ($ModuleInfo.PublicFilter ) {
222
222
# SilentlyContinue because there don't *HAVE* to be public functions
223
223
if (($PublicFunctions = Get-ChildItem $ModuleInfo.PublicFilter - Recurse - ErrorAction SilentlyContinue | Where-Object BaseName -in $AllScripts.BaseName | Select-Object - ExpandProperty BaseName)) {
224
- Update-Metadata - Path $OutputManifest - PropertyName FunctionsToExport - Value ($PublicFunctions | Where-Object {$_ -notin $AliasesToExport })
224
+ Update-Metadata - Path $OutputManifest - PropertyName FunctionsToExport - Value ($PublicFunctions | Where-Object {$_ -notin $AliasesToExport.Values })
225
225
}
226
226
}
227
227
228
228
if ($PublicFunctions -and -not $ModuleInfo.IgnoreAlias ) {
229
- if (($AliasesToExport = $AliasesToExport | Where-Object { $_ -in $ PublicFunctions } | ForEach-Object { $_ } | Select-Object - Unique)) {
229
+ if (($AliasesToExport = $AliasesToExport [ $ PublicFunctions] | ForEach-Object { $_ } | Select-Object - Unique)) {
230
230
Update-Metadata - Path $OutputManifest - PropertyName AliasesToExport - Value $AliasesToExport
231
231
}
232
232
}
You can’t perform that action at this time.
0 commit comments