Skip to content

Commit c0807ed

Browse files
committed
Stop psm1 processing empty Private dir to resolve build issue
1 parent df9defb commit c0807ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PSAppDeployToolkit.Tools/PSAppDeployToolkit.Tools.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# Dot-source our imports.
1111
if (!$Module.Compiled)
1212
{
13-
& $CommandTable.'New-Variable' -Name ModuleFiles -Option Constant -Value ([System.IO.FileInfo[]]$([System.IO.Directory]::GetFiles("$PSScriptRoot\Private"); [System.IO.Directory]::GetFiles("$PSScriptRoot\Public")))
13+
#& $CommandTable.'New-Variable' -Name ModuleFiles -Option Constant -Value ([System.IO.FileInfo[]]$([System.IO.Directory]::GetFiles("$PSScriptRoot\Private"); [System.IO.Directory]::GetFiles("$PSScriptRoot\Public")))
14+
& $CommandTable.'New-Variable' -Name ModuleFiles -Option Constant -Value ([System.IO.FileInfo[]]$([System.IO.Directory]::GetFiles("$PSScriptRoot\Public")))
1415
& $CommandTable.'New-Variable' -Name FunctionNames -Option Constant -Value ($ModuleFiles | & { process { return $_.BaseName } })
1516
& $CommandTable.'New-Variable' -Name FunctionPaths -Option Constant -Value ($FunctionNames -replace '^', 'Microsoft.PowerShell.Core\Function::')
1617
& $CommandTable.'Remove-Item' -LiteralPath $FunctionPaths -Force -ErrorAction Ignore

0 commit comments

Comments
 (0)