Skip to content

Commit c4623b4

Browse files
Merge pull request #45 from theohbrothers/fix/modulemanifest-export-functions-instead-of-cmdlets
Fix (modulemanifest): Export functions instead of cmdlets
2 parents cf7ff4f + dd6c7b9 commit c4623b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build/definitions/modulemanifest/definition.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
# TypesToProcess = @()
2323
# FormatsToProcess = @()
2424
# NestedModules = @()
25-
FunctionsToExport = @()
26-
CmdletsToExport = @(
27-
'Log-Rotate'
25+
FunctionsToExport = @(
26+
Get-ChildItem $PSScriptRoot/../../../src/Log-Rotate/public -Exclude *.Tests.ps1 | % { $_.BaseName }
2827
)
28+
CmdletsToExport = @()
2929
VariablesToExport = @()
3030
AliasesToExport = @()
3131
# DscResourcesToExport = @()

src/Log-Rotate/Log-Rotate.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ PowerShellVersion = '3.0'
6969
# NestedModules = @()
7070

7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = @()
72+
FunctionsToExport = 'Log-Rotate'
7373

7474
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
75-
CmdletsToExport = 'Log-Rotate'
75+
CmdletsToExport = @()
7676

7777
# Variables to export from this module
7878
# VariablesToExport = @()

0 commit comments

Comments
 (0)