@@ -54,11 +54,11 @@ function Build-Module {
54
54
[Alias (" ModuleManifest" , " Path" )]
55
55
[string ]$SourcePath = $ (Get-Location - PSProvider FileSystem),
56
56
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.
58
58
# 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
60
60
[Alias (" Destination" )]
61
- [string ]$OutputDirectory = " ..\ Output" ,
61
+ [string ]$OutputDirectory = " ../ Output" ,
62
62
63
63
# DEPRECATED. Now defaults true, producing a OutputDirectory with a version number as the last folder
64
64
[switch ]$VersionedOutputDirectory = $true ,
@@ -101,7 +101,7 @@ function Build-Module {
101
101
102
102
# A Filter (relative to the module folder) for public functions
103
103
# If non-empty, FunctionsToExport will be set with the file BaseNames of matching files
104
- # Defaults to Public\ *.ps1
104
+ # Defaults to Public/ *.ps1
105
105
[AllowEmptyString ()]
106
106
[string []]$PublicFilter = " [Pp]ublic/*.ps1" ,
107
107
@@ -135,7 +135,7 @@ function Build-Module {
135
135
# - Build builds the module output
136
136
# - CleanBuild first deletes the build output folder and then builds the module back into it
137
137
# 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
139
139
[ValidateSet (" Clean" , " Build" , " CleanBuild" )]
140
140
[string ]$Target = " CleanBuild" ,
141
141
@@ -205,9 +205,11 @@ function Build-Module {
205
205
Write-Verbose " Combine scripts to $RootModule "
206
206
207
207
# SilentlyContinue because there don't *HAVE* to be functions at all
208
+ Write-Debug " SourceDirectories: $ ( $ModuleInfo.ModuleBase ) + $ ( $ModuleInfo.SourceDirectories -join ' |' ) "
208
209
$AllScripts = @ ($ModuleInfo.SourceDirectories ).ForEach {
209
210
# By explicitly converting, we support wildcards in the SourceDirectories parameter
210
211
if ($SourceDirectory = Join-Path - Path $ModuleInfo.ModuleBase - ChildPath $_ | Convert-Path - ErrorAction SilentlyContinue) {
212
+ Write-Debug " SourceDirectory: $SourceDirectory "
211
213
Get-ChildItem - Path $SourceDirectory - Filter * .ps1 - Recurse - ErrorAction SilentlyContinue |
212
214
Sort-Object - Property ' FullName'
213
215
}
0 commit comments