Skip to content

Commit 3b26620

Browse files
fix missing file paths for unit test during prepossess
1 parent eeee941 commit 3b26620

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Compile.ps1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,24 @@ Update-Progress "Pre-req: Running Preprocessor..." 0
5151
$preprocessingFilePath = ".\tools\Invoke-Preprocessing.ps1"
5252
. $preprocessingFilePath
5353

54-
$excludedFiles = @('.\.git\', '.\binary\', '.\.gitignore', '.\.gitattributes', '.\.github\CODEOWNERS', '.\LICENSE', "$preprocessingFilePath", '*.png', '*.exe','.\.preprocessor_hashes.json')
54+
$excludedFiles = @()
55+
56+
# Add directories only if they exist
57+
if (Test-Path '.\.git\') { $excludedFiles += '.\.git\' }
58+
if (Test-Path '.\binary\') { $excludedFiles += '.\binary\' }
59+
60+
# Add files that should always be excluded
61+
$excludedFiles += @(
62+
'.\.gitignore',
63+
'.\.gitattributes',
64+
'.\.github\CODEOWNERS',
65+
'.\LICENSE',
66+
"$preprocessingFilePath",
67+
'*.png',
68+
'*.exe',
69+
'.\.preprocessor_hashes.json'
70+
)
71+
5572
$msg = "Pre-req: Code Formatting"
5673
Invoke-Preprocessing -WorkingDir "$workingdir" -ExcludedFiles $excludedFiles -ProgressStatusMessage $msg
5774

0 commit comments

Comments
 (0)