refactor(lstv2build): changes to not always build the old app if we dont need too
This commit is contained in:
@@ -36,11 +36,20 @@ function Build-LstV2-And-Copy {
|
||||
New-Item -Path $scriptDir -Name "tmp" -ItemType "Directory"
|
||||
}
|
||||
|
||||
$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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user