清理废弃模块并完善测试基础设施

This commit is contained in:
2026-07-17 23:49:45 +08:00
parent d0d1de4d00
commit 90262aaf6d
102 changed files with 1711 additions and 8175 deletions
+10
View File
@@ -40,6 +40,7 @@ function Should-ExcludeDirectory([string]$RelativePath) {
"dist",
"release_packages",
"docs",
"internal",
"reports",
"config",
"logs"
@@ -134,6 +135,15 @@ if (Test-Path -LiteralPath $outputPath) {
New-Item -ItemType Directory -Path $outputPath -Force | Out-Null
Copy-PublicTree -SourceDir $repoRoot -DestinationDir $outputPath -RelativeDir ""
foreach ($forbiddenRoot in @("docs", "internal", "reports")) {
if (Test-Path -LiteralPath (Join-Path $outputPath $forbiddenRoot)) {
throw "Public export isolation failed; forbidden directory was copied: $forbiddenRoot"
}
}
if (Test-Path -LiteralPath (Join-Path $outputPath "README.dev.md")) {
throw "Public export isolation failed; README.dev.md was copied."
}
Write-Host "GitHub export prepared:"
Write-Host " $outputPath"
Write-Host ""