Created
February 17, 2018 23:50
-
-
Save torgro/8e51dd314050bf4681aaf78dd36fcd45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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