Skip to content

Commit

Permalink
Adding module manifest to Initialize-OrchardCoreSolution for PS Core …
Browse files Browse the repository at this point in the history
…to also make its alias (Init-OrchardCoreSolution) immediately
  • Loading branch information
BenedekFarkas committed Jan 11, 2024
1 parent 5123763 commit fefc077
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 27 deletions.
27 changes: 0 additions & 27 deletions OrchardCore/Init-OrchardCoreSolution/Init-OrchardCoreSolution.psm1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@{
RootModule = './Initialize-OrchardCoreSolution.psm1'
ModuleVersion = '0.0.1'
GUID = 'f307f677-bba7-409f-88dd-c17531e21731'
Author = 'Lombiq Technologies Ltd. (https://lombiq.com)'
CompanyName = 'Lombiq Technologies Ltd.'
VariablesToExport = '*'
AliasesToExport = @('Init-OrchardCoreSolution')
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ function Initialize-OrchardCoreSolution

Process
{
if ($MyInvocation.InvocationName -eq 'Init-OrchardCoreSolution')
{
Write-Warning '"Init-OrchardCoreSolution" is the deprecated name of this module. Use "Initialize-OrchardCoreSolution" instead.'
}

if ([string]::IsNullOrEmpty($NuGetSource))
{
dotnet new install OrchardCore.ProjectTemplates::1.7.0
Expand Down

0 comments on commit fefc077

Please sign in to comment.