refactor(lstv2build): changes to not always build the old app if we dont need too

This commit is contained in:
2025-07-21 17:26:50 -05:00
parent ccddef8ba8
commit ed40f4c77e

View File

@@ -36,11 +36,20 @@ function Build-LstV2-And-Copy {
New-Item -Path $scriptDir -Name "tmp" -ItemType "Directory" 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 Push-Location $lstv2Loc
npm run build npm run build
Write-Host "LSTV2 Finished building." Write-Host "LSTV2 Finished building."
}
Write-Host "Copy the latest build to the tmpLoc" Write-Host "Copy the latest build to the tmpLoc"