Skip to content

Instantly share code, notes, and snippets.

@torgro
Created February 17, 2018 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torgro/8e51dd314050bf4681aaf78dd36fcd45 to your computer and use it in GitHub Desktop.
Save torgro/8e51dd314050bf4681aaf78dd36fcd45 to your computer and use it in GitHub Desktop.
$exportFunctions = (Get-ChildItem -Path .\Functions -Filter "*.ps1").BaseName
$manifestPath = Join-Path -Path .\ -ChildPath FilesAPI.psd1
$newManifest = @{
Path = $manifestPath
Guid = ([guid]::NewGuid())
Author = "SomeDude"
CompanyName = "Contoso"
RootModule = "FilesAPI.psm1"
Description = "Awsome files module"
PowerShellVersion = [version]"5.0.0.0"
ModuleVersion = [version]"0.0.0.1"
FunctionsToExport = $exportFunctions
}
New-ModuleManifest @newManifest
# Convert manifest to UTF8
$manifest = Get-Content -Path $manifestPath
Set-Content -Path $manifestPath -Value $manifest -Encoding UTF8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment