清理废弃模块并完善测试基础设施
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user