Skip to content

Commit e6d7855

Browse files
🪲 [Fix]: Manifest loading files from init and classes` (#35)
## Description - Fix an issue where manifest filelist contains files from `init and `classes`. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent e61fda5 commit e6d7855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers/Build/Build-PSModuleManifest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Build-PSModuleManifest {
7474
$files = $ModuleOutputFolder | Get-ChildItem -File -ErrorAction SilentlyContinue | Where-Object -Property Name -NotLike '*.ps1'
7575
$files += $ModuleOutputFolder | Get-ChildItem -Directory | Get-ChildItem -Recurse -File -ErrorAction SilentlyContinue
7676
$files = $files | Select-Object -ExpandProperty FullName | ForEach-Object { $_.Replace($ModuleOutputFolder, '').TrimStart($pathSeparator) }
77-
$fileList = $files | Where-Object { $_ -notLike 'public*' -and $_ -notLike 'private*' }
77+
$fileList = $files | Where-Object { $_ -NotLike 'init*' -and $_ -NotLike 'classes*' -and $_ -NotLike 'public*' -and $_ -NotLike 'private*' }
7878
$manifest.FileList = $fileList.count -eq 0 ? @() : @($fileList)
7979
$manifest.FileList | ForEach-Object { Write-Verbose "[FileList] - [$_]" }
8080

0 commit comments

Comments
 (0)