Skip to content

Commit 1d1b4d8

Browse files
committed
fix: Clean up build.ps1 by removing unnecessary debug output
1 parent 206928a commit 1d1b4d8

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

build.ps1

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,29 @@ param(
2727
)
2828

2929
$ErrorActionPreference = 'Stop'
30-
'1'
30+
3131
# Bootstrap dependencies
3232
if ($Bootstrap.IsPresent) {
33-
'2'
3433
Get-PackageProvider -Name Nuget -ForceBootstrap | Out-Null
35-
'3'
3634
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
37-
'4'
3835
if ((Test-Path -Path ./requirements.psd1)) {
39-
'5'
4036
if (-not (Get-Module -Name PSDepend -ListAvailable)) {
41-
'6'
4237
Install-Module -Name PSDepend -Repository PSGallery -Scope CurrentUser -Force
4338
}
44-
'7'
4539
Import-Module -Name PSDepend -Verbose:$false
46-
'8'
4740
Invoke-PSDepend -Path './requirements.psd1' -Install -Import -Force -WarningAction SilentlyContinue
4841
} else {
4942
Write-Warning 'No [requirements.psd1] found. Skipping build dependency installation.'
5043
}
5144
}
5245

5346
# Execute psake task(s)
54-
'9'
5547
$psakeFile = './psakeFile.ps1'
5648
if ($PSCmdlet.ParameterSetName -eq 'Help') {
57-
'10'
5849
Get-PSakeScriptTasks -buildFile $psakeFile |
5950
Format-Table -Property Name, Description, Alias, DependsOn
6051
} else {
61-
'11'
6252
Set-BuildEnvironment -Force
63-
'12'
6453
Invoke-psake -buildFile $psakeFile -taskList $Task -nologo -properties $Properties -parameters $Parameters
6554
if ($psake.build_success) {
6655
"Build complete"

0 commit comments

Comments
 (0)