From af4efb8784cbd179f44ef510bb98c4f98547e047 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 18 Aug 2026 02:54:10 +0200 Subject: [PATCH] Build TypeScript dependencies before reactive verification --- scripts/verify-reactive-document-scaling.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/verify-reactive-document-scaling.ps1 b/scripts/verify-reactive-document-scaling.ps1 index e3555ae2..a60c9dee 100644 --- a/scripts/verify-reactive-document-scaling.ps1 +++ b/scripts/verify-reactive-document-scaling.ps1 @@ -31,6 +31,26 @@ if (-not (Test-Path -LiteralPath $typescript)) { throw "TypeScript compiler not found: $typescript" } +foreach ($dependency in @("cultcache-ts", "cultnet-ts")) { + $dependencyRoot = Join-Path $root "packages\$dependency" + Push-Location $dependencyRoot + try { + if ($dependency -eq "cultnet-ts") { + & $nodeExecutable (Join-Path $dependencyRoot "tools\generate-swarm-contracts.mjs") + if ($LASTEXITCODE -ne 0) { + throw "CultNet TypeScript contract generation failed." + } + } + & $nodeExecutable $typescript -p tsconfig.json --pretty false + if ($LASTEXITCODE -ne 0) { + throw "TypeScript dependency build failed: $dependency" + } + } + finally { + Pop-Location + } +} + & $dotnet.Source test (Join-Path $root "tests\GameCult.Mesh.Tests\GameCult.Mesh.Tests.csproj") ` --filter "FullyQualifiedName~ReactiveDocument_SchedulingScalesWithChangedDocumentsOnly" ` --nologo `