File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,10 @@ function Build-Module {
205205 Write-Verbose " Combine scripts to $RootModule "
206206
207207 # SilentlyContinue because there don't *HAVE* to be functions at all
208- $AllScripts = Get-ChildItem - Path @ ($ModuleInfo.SourceDirectories ).ForEach { Join-Path $ModuleInfo.ModuleBase $_ } - Filter * .ps1 - Recurse - ErrorAction SilentlyContinue
208+ $AllScripts = @ ($ModuleInfo.SourceDirectories ).ForEach {
209+ Get-ChildItem - Path (Join-Path - Path $ModuleInfo.ModuleBase - ChildPath $_ ) - Filter * .ps1 - Recurse - ErrorAction SilentlyContinue |
210+ Sort-Object - Property ' FullName'
211+ }
209212
210213 # We have to force the Encoding to string because PowerShell Core made up encodings
211214 SetModuleContent - Source (@ ($ModuleInfo.Prefix ) + $AllScripts.FullName + @ ($ModuleInfo.Suffix )).Where {$_ } - Output $RootModule - Encoding " $ ( $ModuleInfo.Encoding ) "
You can’t perform that action at this time.
0 commit comments