From ed40f4c77e9d81e36292f38c342e9c2b062f84b9 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Mon, 21 Jul 2025 17:26:50 -0500 Subject: [PATCH] refactor(lstv2build): changes to not always build the old app if we dont need too --- scripts/lstV2Build.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/lstV2Build.ps1 b/scripts/lstV2Build.ps1 index a1794f3..bdfb5e9 100644 --- a/scripts/lstV2Build.ps1 +++ b/scripts/lstV2Build.ps1 @@ -36,11 +36,20 @@ function Build-LstV2-And-Copy { New-Item -Path $scriptDir -Name "tmp" -ItemType "Directory" } - Write-Host "Jumping into lstV2 to build it." +$defaultChoice = "n" +$input = Read-Host "Do we want to build lstV2? (Y/n) [$defaultChoice]" + +$choice = if ([string]::IsNullOrWhiteSpace($input)) { $defaultChoice } else { $input.ToLower() } + + if($choice -eq "n"){ + Write-Host "Just going to copy the latest build over as we dont want to build a new one." + } else { + Write-Host "Jumping into lstV2 to build it." Push-Location $lstv2Loc npm run build Write-Host "LSTV2 Finished building." + } Write-Host "Copy the latest build to the tmpLoc"