Evotec

Project

PSPublishModule

PSPublishModule is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 43
Forks 13
Open issues 1
PowerShell Gallery downloads 13,876
Release v3.0.3
Language: C# Updated: 2026-04-14

API Reference

Cmdlet

New-ConfigurationInformation

Namespace PSPublishModule
Inputs
None
Outputs
System.Object

Describes what to include/exclude in the module build and how libraries are organized.

Remarks

This configuration segment controls:

Examples

Authored help example

Customize include/exclude rules for packaging

PS>


New-ConfigurationInformation -ExcludeFromPackage 'Ignore','Examples','Docs' -IncludeRoot '*.psd1','*.psm1','LICENSE' -IncludeAll 'Bin','Lib','en-US'
        

Controls what ends up in packaged artefacts while keeping staging lean.

Add custom files during staging

PS>


New-ConfigurationInformation -IncludeCustomCode { Copy-Item -Path '.\Extras\*' -Destination $StagingPath -Recurse -Force }
        

Injects additional content into the staging folder before packaging.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ConfigurationInformation [-AliasesToExportFolder <String>] [-ExcludeFromPackage <String[]>] [-FunctionsToExportFolder <String>] [-IncludeAll <String[]>] [-IncludeCustomCode <ScriptBlock>] [-IncludePS1 <String[]>] [-IncludeRoot <String[]>] [-IncludeToArray <IncludeToArrayEntry[]>] [-LibrariesCore <String>] [-LibrariesDefault <String>] [-LibrariesStandard <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AliasesToExportFolder String optionalposition: namedpipeline: False
Folder name containing public aliases to export (e.g., 'Public').
ExcludeFromPackage String[] optionalposition: namedpipeline: False
Paths or patterns to exclude from artefacts (e.g., 'Ignore','Docs','Examples').
FunctionsToExportFolder String optionalposition: namedpipeline: False
Folder name containing public functions to export (e.g., 'Public').
IncludeAll String[] optionalposition: namedpipeline: False
Folder names to include entirely.
IncludeCustomCode ScriptBlock optionalposition: namedpipeline: False
Scriptblock executed during staging to add custom files/folders.
IncludePS1 String[] optionalposition: namedpipeline: False
Folder names where PS1 files should be included.
IncludeRoot String[] optionalposition: namedpipeline: False
File patterns from the root to include (e.g., '*.psm1','*.psd1','License*').
IncludeToArray IncludeToArrayEntry[] optionalposition: namedpipeline: False
Advanced include rules. Accepts legacy hashtable (Key=>Values) or IncludeToArrayEntry[].
LibrariesCore String optionalposition: namedpipeline: False
Relative path to libraries compiled for Core (default 'Lib/Core').
LibrariesDefault String optionalposition: namedpipeline: False
Relative path to libraries for classic .NET (default 'Lib/Default').
LibrariesStandard String optionalposition: namedpipeline: False
Relative path to libraries for .NET Standard (default 'Lib/Standard').

Outputs

System.Object