$ErrorActionPreference = "Stop" $project = Split-Path -Parent $MyInvocation.MyCommand.Path Set-Location $project $manifest = Get-Content (Join-Path $project "package.json") -Raw | ConvertFrom-Json if ($manifest.name -ne "forgeflow" -or $manifest.version -ne "0.6.0") { throw "This overlay is not ForgeFlow 0.6.0." } Write-Host "ForgeFlow 0.6.0 overlay validation" -ForegroundColor Cyan Write-Host "Project: $project" & npm install --no-audit --no-fund if ($LASTEXITCODE -ne 0) { throw "npm install failed with exit code $LASTEXITCODE." } & npm run check if ($LASTEXITCODE -ne 0) { throw "npm run check failed with exit code $LASTEXITCODE." } Write-Host "Starting ForgeFlow 0.6.0..." -ForegroundColor Green & npm start