Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$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]""
ModuleVersion = [version]""
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
You can’t perform that action at this time.