fixes
This commit is contained in:
parent
9ebbf6aace
commit
2de71c6310
3 changed files with 74 additions and 24 deletions
|
|
@ -29,26 +29,28 @@ try {
|
|||
& powershell ./scripts/build-libs.ps1
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Library build failed"
|
||||
}
|
||||
|
||||
# Step 3: Build apps with Turbo (excluding dashboard)
|
||||
} # Step 3: Build apps with Turbo (excluding dashboard)
|
||||
Write-Host "🏗️ Building applications with Turbo..." -ForegroundColor Green
|
||||
|
||||
# Get list of apps excluding dashboard
|
||||
$appDirs = Get-ChildItem -Path "apps" -Directory | Where-Object { $_.Name -ne "dashboard" }
|
||||
$appFilters = $appDirs | ForEach-Object { "./apps/$($_.Name)" }
|
||||
|
||||
if ($appFilters.Count -gt 0) {
|
||||
$filterArg = $appFilters -join " "
|
||||
$turboCmd = "turbo run build --filter=`"$filterArg`""
|
||||
|
||||
if ($Verbose) {
|
||||
Write-Host "Running: $turboCmd" -ForegroundColor DarkGray
|
||||
}
|
||||
|
||||
Invoke-Expression $turboCmd
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Turbo app build failed"
|
||||
if ($appDirs.Count -gt 0) {
|
||||
# Build each app individually to avoid filter syntax issues
|
||||
foreach ($app in $appDirs) {
|
||||
$appPath = "./apps/$($app.Name)"
|
||||
Write-Host " Building $($app.Name)..." -ForegroundColor Cyan
|
||||
|
||||
$turboCmd = "turbo run build --filter=$appPath"
|
||||
|
||||
if ($Verbose) {
|
||||
Write-Host " Running: $turboCmd" -ForegroundColor DarkGray
|
||||
}
|
||||
|
||||
Invoke-Expression $turboCmd
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Failed to build app: $($app.Name)"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "✅ Apps built successfully: $($appDirs.Name -join ', ')" -ForegroundColor Green
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue