Nulah.PowerShell/build/Scripts/CreateModuleManifest.ps1

27 lines
No EOL
849 B
PowerShell

param (
[string]$powershellModuleFileLocation,
[string]$guid,
[string]$author,
[string[]]$nestedModules,
[string]$rootModule,
[string[]]$cmdletsToExport,
[string]$manifestFileLocation,
# not used for anything yet, but I should probably simplify the module locations as they get the output dir
# created in CopyOutputTask.cs
[string]$outputDir
)
$manifestSplat = @{
Path = "$powershellModuleFileLocation"
GUID = "$guid"
Author = "$author"
NestedModules = @($nestedModules)
RootModule = "$rootModule"
CmdletsToExport = @($cmdletsToExport)
FunctionsToExport = @()
VariablesToExport = @()
AliasesToExport = @()
}
New-ModuleManifest @manifestSplat
New-Item "$manifestFileLocation" -ItemType File -Value "# This file is run when Import-Module `"PowershellModule`" is called"