stock-bot/scripts/build-libs.ps1

28 lines
687 B
PowerShell

# Build and install the new libraries
Write-Host "Building and installing new libraries..." -ForegroundColor Cyan
# Build order is important due to dependencies
$libs = @(
"shared-types",
"utils",
"event-bus",
"api-client"
)
# Build each library in order
foreach ($lib in $libs) {
$libPath = "g:\repos\stock-bot\libs\$lib"
Write-Host "Building $lib..." -ForegroundColor Green
Set-Location $libPath
bun run build
if ($LASTEXITCODE -ne 0) {
Write-Host "Failed to build $lib. Exiting." -ForegroundColor Red
exit 1
}
}
Write-Host "All libraries built successfully!" -ForegroundColor Green
Set-Location g:\repos\stock-bot