diff --git a/_InitializeRepository.ps1 b/_InitializeRepository.ps1 index 68a86df..f9c36ae 100644 --- a/_InitializeRepository.ps1 +++ b/_InitializeRepository.ps1 @@ -16,7 +16,7 @@ If you have made changes to any files you may want to commit them before continu Write-Information "Creating the template repository files." Import-Module -Name $TemplateModuleDirectoryPath -Force - New-PowerShellModuleRepository -RepositoryDirectoryPath $RepositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName + New-PowerShellScriptModuleRepository -RepositoryDirectoryPath $RepositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName Remove-Module -Name Template.PowerShell.ScriptModule -Force Write-Information "Removing the template module files since we are done using it to create the template repository files." diff --git a/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1 b/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1 index 75b8025..dcacef6 100644 --- a/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1 +++ b/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1 @@ -69,7 +69,7 @@ Checkout the template repository at https://github.com/deadlydog/Template.PowerS # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = @( 'Get-TemplateDescription' - 'New-PowerShellModuleRepository' + 'New-PowerShellScriptModuleRepository' ) # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. diff --git a/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1 b/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1 index 5758024..a4c3baf 100644 --- a/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1 +++ b/src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1 @@ -14,9 +14,10 @@ For more information, visit the repository at https://github.com/deadlydog/Templ Write-Output $description } -function New-PowerShellModuleRepository +function New-PowerShellScriptModuleRepository { [CmdletBinding()] + [Alias('New-PSRepository')] Param ( [Parameter(Mandatory = $true, HelpMessage = "The path to the directory where the module repository should be created.")]