Skip to content

Commit

Permalink
Remove references to ToPsScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykul committed Sep 15, 2023
1 parent c6a4715 commit 3df1b4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Source/Classes/PowerLineTheme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Add-MetadataConverter @{
DefaultCaps = '$($_.DefaultCaps.Left)', '$($_.DefaultCaps.Right)'
DefaultSeparator = '$($_.DefaultSeparator)'
Prompt = @(
$($_.Prompt.ToPsScript() -join "`n ")
$($_.Prompt.ToPSMetadata() -join "`n ")
)
PSReadLineContinuationPrompt = '$($_.PSReadLineContinuationPrompt)'
PSReadLineContinuationPromptColor = '$($_.PSReadLineContinuationPromptColor)'
Expand Down
13 changes: 1 addition & 12 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,7 @@ try {
$null = $PSBoundParameters.Remove("SkipBinaryBuild")
$Module = Build-Module @PSBoundParameters -Passthru

$Folder = Split-Path $Module.Path

if (!$SkipBinaryBuild) {
Write-Host "## Compiling binary module" -ForegroundColor Cyan

# dotnet restore
dotnet publish -c $Configuration -o "$($Folder)\lib" | Write-Host -ForegroundColor DarkGray
# We don't need to ship any of the System DLLs because they're all in PowerShell
Get-ChildItem $Folder -Filter System.* -Recurse | Remove-Item
}

$Folder
Split-Path $Module.Path

} finally {
Pop-Location -StackName BuildModuleScript
Expand Down

0 comments on commit 3df1b4f

Please sign in to comment.