From 53ebbb28276550f51a045dd22f2608b0c183f7fb Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 27 Jul 2017 14:25:50 +0200 Subject: [PATCH] fix module manifest encoding --- src/PSCredentialStore.psd1 | 6 +++--- src/PSCredentialStore.psm1 | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/PSCredentialStore.psm1 diff --git a/src/PSCredentialStore.psd1 b/src/PSCredentialStore.psd1 index 8900b1b..0498f08 100644 --- a/src/PSCredentialStore.psd1 +++ b/src/PSCredentialStore.psd1 @@ -9,10 +9,10 @@ @{ # Script module or binary module file associated with this manifest. - # RootModule = '' + RootModule = 'PSCredentialStore' # Version number of this module. - ModuleVersion = '1.0' + ModuleVersion = $Env:APPVEYOR_BUILD_VERSION # Supported PSEditions # CompatiblePSEditions = @() @@ -33,7 +33,7 @@ # Description = '' # Minimum version of the Windows PowerShell engine required by this module - # PowerShellVersion = '' + PowerShellVersion = '4.0' # Name of the Windows PowerShell host required by this module # PowerShellHostName = '' diff --git a/src/PSCredentialStore.psm1 b/src/PSCredentialStore.psm1 new file mode 100644 index 0000000..61866b5 --- /dev/null +++ b/src/PSCredentialStore.psm1 @@ -0,0 +1,10 @@ +$Items = (Get-ChildItem -Path ("{0}\*.ps1" -f $PSScriptRoot ) -Recurse ).FullName | Where-Object { + $_ -notmatch "(Classes|Init)" +} +ForEach ($Item in $Items) { + # Write-Verbose ("dot sourcing file {0}" -f $Item) + . $Item +} + +# Exports are now controlled by module manifest +# Export-ModuleMember -Function *