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"