psconfluencepublisher/scripts/clean.ps1
Rodweil, Theodor 46b1b7c83f
refactor: make this a valid nuget package for Powershell gallery
feat: add build environment scripts
2023-08-07 20:56:50 +02:00

22 lines
364 B
PowerShell
Executable file

#! /usr/bin/pwsh
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$ErrorView = "NormalView"
$basePath = Join-Path $PSScriptRoot '..'
@(
'dist',
'test-reports'
) | ForEach {
$path = Join-Path $basePath $_
If (-Not (Test-Path $path)) {return}
Write-Host "rm: $(Resolve-Path $path)"
Remove-Item -Recurse -Force ($path)
}