Skip to content

Commit 8ca2d56

Browse files
🩹 [Patch]: Replace Import-Module with Get-Module for improved module handling in Build-PSModuleDocumentation
1 parent 0b67829 commit 8ca2d56

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
@@ -47,7 +47,7 @@
4747

4848
Write-Host '::group::Build docs - Generate markdown help - Raw'
4949
Install-PSModule -Path $ModuleOutputFolder
50-
$moduleInfo = Import-Module -Name $ModuleName -Force -PassThru
50+
$moduleInfo = Get-Module -Name $ModuleName
5151

5252
# Get all exported commands from the module
5353
$commands = $moduleInfo.ExportedCommands.Values | Where-Object { $_.CommandType -ne 'Alias' }

0 commit comments

Comments
 (0)