Skip to content

Commit

Permalink
set cmdlets and variables to export to empty on build
Browse files Browse the repository at this point in the history
  • Loading branch information
darksidemilk committed Aug 22, 2024
1 parent e9af489 commit 884a7f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ $PublicFunctions = Get-ChildItem "$modulePath\Public" -Recurse -Filter '*.ps1' -
$Classes = Get-ChildItem "$modulePath\Classes" -Recurse -Filter '*.ps1' -EA 0;
$PrivateFunctions = Get-ChildItem "$modulePath\Private" -Recurse -Filter '*.ps1' -EA 0;
$aliases = Get-AliasesToExport -psm1Path $moduleFile -modulePath $modulePath;

# mkdir "$PSSCriptRoot\ModuleBuild" -EA 0;
# $buildPth = "$env:userprofile\ModuleBuild\$moduleName";

Expand Down Expand Up @@ -513,10 +514,12 @@ if($null -eq $aliases) {
$manifestSplat.Remove('AliasesToExport')
}


# Update-ModuleManifest -Path $manifest -ReleaseNotes $releaseNotes -ModuleVersion $newVer -RootModule "$moduleName.psm1" -FunctionsToExport $PublicFunctions.BaseName
Update-ModuleManifest @manifestSplat;

Set-EmptyExportArray -psd1Path $Manifest -ExportType Cmdlets;
Set-EmptyExportArray -psd1Path $Manifest -ExportType Variables;


Copy-Item $manifest "$buildPth\$moduleName.psd1";

Expand Down

0 comments on commit 884a7f4

Please sign in to comment.