Summary of the new feature / enhancement
This issue is for the following comment in #27946 that meets more of the communities request to have a minimised manifest that has no unused properties included.
As a separate issue, I feel we should look at how we further minimise the output from New-ModuleManifest to meet regular comments from the community around unneeded/unnecessary properties that form the Manifest from being included in the output, to help reduce needs for workarounds, likely via another switch along the lines of NoCommentedProperties.
Proposed technical implementation details (optional)
Add -NoCommentedProperties switch parameter to New-ModuleManifest cmdlet as to produce this layout of a module manifest, when called like this New-ModuleManifest a1.psd1 -NoCommmentedProperties so that you get the whole manifest shape like so.
@{
ModuleVersion = '0.0.1'
GUID = 'b02e941a-81c0-44cf-9ac1-2ed2a891eaeb'
Author = 'RyanYates'
CompanyName = 'Unknown'
Copyright = '(c) RyanYates. All rights reserved.'
FunctionsToExport = @()
CmdletsToExport = @()
VariablesToExport = '*'
AliasesToExport = @()
PrivateData = @{
PSData = @{
Prerelease = 'test'
}
}
}
Summary of the new feature / enhancement
This issue is for the following comment in #27946 that meets more of the communities request to have a minimised manifest that has no unused properties included.
Proposed technical implementation details (optional)
Add
-NoCommentedPropertiesswitch parameter to New-ModuleManifest cmdlet as to produce this layout of a module manifest, when called like thisNew-ModuleManifest a1.psd1 -NoCommmentedPropertiesso that you get the whole manifest shape like so.