Skip to content

Commit cb936ce

Browse files
committed
Fix #88 by keeping the prefix from build.psd1
1 parent d28c47d commit cb936ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Private/InitializeBuild.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ function InitializeBuild {
4646
throw "Unresolvable problems in module manifest"
4747
}
4848

49+
# Workaround the fact that Get-Module returns the DefaultCommandPrefix as Prefix
50+
$ModuleInfo = Update-Object -InputObject $ModuleInfo -UpdateObject @{ DefaultCommandPrefix = $ModuleInfo.Prefix; Prefix = "" }
4951
# Update the module manifest with our build configuration
5052
$ModuleInfo = Update-Object -InputObject $ModuleInfo -UpdateObject $BuildInfo
51-
$ModuleInfo = Update-Object -InputObject $ModuleInfo -UpdateObject @{ DefaultCommandPrefix = $ModuleInfo.Prefix; Prefix = "" }
5253

5354
$ModuleInfo
5455
}

0 commit comments

Comments
 (0)