Skip to content

Commit 32ea855

Browse files
committed
Fix #30 so -Passthru works when the build is skipped
1 parent 2b96d6d commit 32ea855

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Public/Build-Module.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ function Build-Module {
181181
Where-Object LastWriteTime -gt $NewestBuild |
182182
Select-Object -First 1 -ExpandProperty LastWriteTime
183183
if ($null -eq $IsNew) {
184+
# This is mostly for testing ...
185+
if ($Passthru) {
186+
Get-Module $OutputManifest -ListAvailable
187+
}
184188
return # Skip the build
185189
}
186190
}

0 commit comments

Comments
 (0)