@@ -54,11 +54,11 @@ function Build-Module {
5454 [Alias (" ModuleManifest" , " Path" )]
5555 [string ]$SourcePath = $ (Get-Location - PSProvider FileSystem),
5656
57- # Where to build the module. Defaults to "..\ Output" adjacent to the "SourcePath" folder.
57+ # Where to build the module. Defaults to "../ Output" adjacent to the "SourcePath" folder.
5858 # The ACTUAL output may be in a subfolder of this path ending with the module name and version
59- # The default value is ..\ Output which results in the build going to ..\ Output\ ModuleName\ 1.2.3
59+ # The default value is ../ Output which results in the build going to ../ Output/ ModuleName/ 1.2.3
6060 [Alias (" Destination" )]
61- [string ]$OutputDirectory = " ..\ Output" ,
61+ [string ]$OutputDirectory = " ../ Output" ,
6262
6363 # DEPRECATED. Now defaults true, producing a OutputDirectory with a version number as the last folder
6464 [switch ]$VersionedOutputDirectory = $true ,
@@ -101,7 +101,7 @@ function Build-Module {
101101
102102 # A Filter (relative to the module folder) for public functions
103103 # If non-empty, FunctionsToExport will be set with the file BaseNames of matching files
104- # Defaults to Public\ *.ps1
104+ # Defaults to Public/ *.ps1
105105 [AllowEmptyString ()]
106106 [string []]$PublicFilter = " [Pp]ublic/*.ps1" ,
107107
@@ -135,7 +135,7 @@ function Build-Module {
135135 # - Build builds the module output
136136 # - CleanBuild first deletes the build output folder and then builds the module back into it
137137 # Note that the folder to be deleted is the actual calculated output folder, with the version number
138- # So for the default OutputDirectory with version 1.2.3, the path to clean is: ..\ Output\ ModuleName\ 1.2.3
138+ # So for the default OutputDirectory with version 1.2.3, the path to clean is: ../ Output/ ModuleName/ 1.2.3
139139 [ValidateSet (" Clean" , " Build" , " CleanBuild" )]
140140 [string ]$Target = " CleanBuild" ,
141141
@@ -205,9 +205,11 @@ function Build-Module {
205205 Write-Verbose " Combine scripts to $RootModule "
206206
207207 # SilentlyContinue because there don't *HAVE* to be functions at all
208+ Write-Debug " SourceDirectories: $ ( $ModuleInfo.ModuleBase ) + $ ( $ModuleInfo.SourceDirectories -join ' |' ) "
208209 $AllScripts = @ ($ModuleInfo.SourceDirectories ).ForEach {
209210 # By explicitly converting, we support wildcards in the SourceDirectories parameter
210211 if ($SourceDirectory = Join-Path - Path $ModuleInfo.ModuleBase - ChildPath $_ | Convert-Path - ErrorAction SilentlyContinue) {
212+ Write-Debug " SourceDirectory: $SourceDirectory "
211213 Get-ChildItem - Path $SourceDirectory - Filter * .ps1 - Recurse - ErrorAction SilentlyContinue |
212214 Sort-Object - Property ' FullName'
213215 }
0 commit comments