Skip to content

Commit

Permalink
ci: 💚 use exports and manifest fields correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
anonhostpi committed Nov 2, 2023
1 parent 9b28320 commit 7862488
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 22 deletions.
17 changes: 12 additions & 5 deletions Import-Package/Import-Package.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = '.\Import-Package.psm1'

# Version number of this module.
ModuleVersion = '0.3.0'
ModuleVersion = '0.3.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -51,7 +51,9 @@ Description = 'Adds ability to import NuGet/Nupkg packages downloaded by Package
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()
RequiredModules = @(
"PackageManagement"
)

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
Expand All @@ -69,13 +71,18 @@ Description = 'Adds ability to import NuGet/Nupkg packages downloaded by Package
# NestedModules = @()

# 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.
FunctionsToExport = "*"
FunctionsToExport = @(
"Import-Package",
"Read-Package",
"Get-Dotnet",
"Get-Runtime"
)

# 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.
CmdletsToExport = "*"
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = '*'
VariablesToExport = @()

# Aliases 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 aliases to export.
# AliasesToExport = @()
Expand Down
7 changes: 6 additions & 1 deletion Import-Package/Import-Package.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -657,4 +657,9 @@ If( ($bootstrapper.Runtime -match "^win") -and ($bootstrapper.System.Framework -
Import-Package "Microsoft.Windows.SDK.NET.Ref"
}
}
Export-ModuleMember -Cmdlet Import-Package, Read-Package, Get-Dotnet -Function Import-Package, Read-Package, Get-Dotnet, Get-Runtime
Export-ModuleMember -Function @(
"Import-Package",
"Read-Package",
"Get-Dotnet",
"Get-Runtime"
)
13 changes: 9 additions & 4 deletions New-ThreadController/New-ThreadController.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = '.\New-ThreadController.psm1'

# Version number of this module.
ModuleVersion = '0.3.0'
ModuleVersion = '0.3.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -69,13 +69,18 @@ Description = 'Adds a thread (runspace) constructor that returns a wrapped dispa
# NestedModules = @()

# 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.
FunctionsToExport = "*"
FunctionsToExport = @(
"New-ThreadController",
"Update-DispatcherFactory",
"Get-Threads",
"Async"
)

# 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.
CmdletsToExport = "*"
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = '*'
VariablesToExport = @()

# Aliases 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 aliases to export.
# AliasesToExport = @()
Expand Down
18 changes: 6 additions & 12 deletions New-ThreadController/New-ThreadController.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,9 @@ function Async {
}
}

Export-ModuleMember `
-Function @(
"New-ThreadController",
"Update-DispatcherFactory",
"Get-Threads",
"Async"
) -Cmdlet @(
"New-ThreadController",
"Update-DispatcherFactory",
"Get-Threads",
"Async"
)
Export-ModuleMember -Function @(
"New-ThreadController",
"Update-DispatcherFactory",
"Get-Threads",
"Async"
)

0 comments on commit 7862488

Please sign in to comment.