Skip to content

Commit

Permalink
Updating LightScript.ezformat.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Nov 1, 2022
1 parent ff3ea62 commit 5c80316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LightScript.ezformat.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#requires -Module EZOut
#requires -Module EZOut
# Install-Module EZOut or https://github.com/StartAutomating/EZOut
$myFile = $MyInvocation.MyCommand.ScriptBlock.File
$myModuleName = 'LightScript'
Expand All @@ -19,6 +19,7 @@ $destinationRoot = $myRoot
if ($formatting) {
$myFormatFile = Join-Path $destinationRoot "$myModuleName.format.ps1xml"
$formatting | Out-FormatData -Module $MyModuleName | Set-Content $myFormatFile -Encoding UTF8
Get-Item $myFormatFile
}

$types = @(
Expand All @@ -33,5 +34,6 @@ $types = @(
if ($types) {
$myTypesFile = Join-Path $destinationRoot "$myModuleName.types.ps1xml"
$types | Out-TypeData | Set-Content $myTypesFile -Encoding UTF8
Get-Item $myTypesFile
}
Pop-Location

0 comments on commit 5c80316

Please sign in to comment.