From 3b2662062721b7cd872ffb2e2f5816e89f2bfbae Mon Sep 17 00:00:00 2001 From: Chris Titus Tech Date: Mon, 6 Oct 2025 10:05:36 -0500 Subject: [PATCH] fix missing file paths for unit test during prepossess --- Compile.ps1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Compile.ps1 b/Compile.ps1 index fc6290b3..a1ab15a9 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -51,7 +51,24 @@ Update-Progress "Pre-req: Running Preprocessor..." 0 $preprocessingFilePath = ".\tools\Invoke-Preprocessing.ps1" . $preprocessingFilePath -$excludedFiles = @('.\.git\', '.\binary\', '.\.gitignore', '.\.gitattributes', '.\.github\CODEOWNERS', '.\LICENSE', "$preprocessingFilePath", '*.png', '*.exe','.\.preprocessor_hashes.json') +$excludedFiles = @() + +# Add directories only if they exist +if (Test-Path '.\.git\') { $excludedFiles += '.\.git\' } +if (Test-Path '.\binary\') { $excludedFiles += '.\binary\' } + +# Add files that should always be excluded +$excludedFiles += @( + '.\.gitignore', + '.\.gitattributes', + '.\.github\CODEOWNERS', + '.\LICENSE', + "$preprocessingFilePath", + '*.png', + '*.exe', + '.\.preprocessor_hashes.json' +) + $msg = "Pre-req: Code Formatting" Invoke-Preprocessing -WorkingDir "$workingdir" -ExcludedFiles $excludedFiles -ProgressStatusMessage $msg