Public/Publish-PsModule.ps1
Import-Module DotupPsEssentials function Publish-PsModule { param ( $path, $apiKey ) $moduleName = Split-Path $path -Leaf $functions = Get-PsModuleFunctions $path -PublicOnly Update-ModuleManifest -Path "$((Join-Path $path $moduleName)).psd1" -FunctionsToExport $functions; Publish-Module -Path $path -NugetAPIKey $apiKey; } |