Skip to content

Commit 8654867

Browse files
Add PSModulePath before module removal in Build-PSModuleDocumentation script
1 parent e677407 commit 8654867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Build-PSModuleDocumentation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function Build-PSModuleDocumentation {
4848
Write-Host "Docs output folder: [$docsOutputFolder]"
4949
}
5050

51-
5251
LogGroup 'Build docs - Generate markdown help' {
52+
Add-PSModulePath -Path (Split-Path -Path $ModuleOutputFolder -Parent)
5353
$ModuleName | Remove-Module -Force -ErrorAction SilentlyContinue
5454
Import-Module -Name $ModuleName -Force -RequiredVersion '999.0.0'
5555
Write-Host ($ModuleName | Get-Module)

0 commit comments

Comments
 (0)