From 883d6253a88e4024d061c6d4c48115241b378659 Mon Sep 17 00:00:00 2001 From: "Kevin D. Wolf" Date: Sat, 29 Aug 2026 16:14:42 -0400 Subject: [PATCH] Include test support packages in Core package set --- Build-GitHubPackages.ps1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Build-GitHubPackages.ps1 b/Build-GitHubPackages.ps1 index 3dfd4858..2b91dc8e 100644 --- a/Build-GitHubPackages.ps1 +++ b/Build-GitHubPackages.ps1 @@ -27,9 +27,19 @@ if (Test-Path $outputPath) { New-Item -ItemType Directory -Force -Path $outputPath | Out-Null New-Item -ItemType Directory -Force -Path (Split-Path $catalogFullPath -Parent) | Out-Null -$nuspecFiles = @(Get-ChildItem -Path (Join-Path $repoRoot 'src') -Filter 'Package.nuspec' -File -Recurse | Sort-Object FullName) +$packageRoots = @('src', 'tests') +$nuspecFiles = @( + $packageRoots | + ForEach-Object { + $root = Join-Path $repoRoot $_ + if (Test-Path $root) { + Get-ChildItem -Path $root -Filter 'Package.nuspec' -File -Recurse + } + } | + Sort-Object FullName +) if ($nuspecFiles.Count -eq 0) { - throw 'No Package.nuspec files were found beneath src.' + throw 'No Package.nuspec files were found beneath src or tests.' } $packages = @()