Create a build script for all functions in a consolidated PSM1 file#1586
Merged
Create a build script for all functions in a consolidated PSM1 file#1586
Conversation
…on during consolidation
…r details for indentation normalization
Up to standards ✅🟢 Issues
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new build process to generate a publishable Maester module artifact under ./module/ without modifying the source tree, focusing on faster module import via consolidation.
Changes:
- Adds
build/Build-MaesterModule.ps1to AST-discover public exports, consolidateMaester.psm1, consolidate ORCA classes, update the manifest, and copy assets/tests. - Adds
build/Build-MaesterModule.mddocumenting usage and build phases. - Ignores generated build output (
/module/) and updates the optimization plan formatting.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| build/maester-optimization-plan.md | Minor markdown formatting adjustments to the optimization plan. |
| build/Build-MaesterModule.ps1 | New end-to-end build script for producing a consolidated module artifact and updated manifest. |
| build/Build-MaesterModule.md | Documentation for the new build script, phases, and output structure. |
| .gitignore | Ensures /module/ build output is not committed. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
moorereason
reviewed
Apr 7, 2026
This was referenced Apr 15, 2026
This was referenced Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new Maester PowerShell module build process.
Consolidates all source files from
powershell/internal/andpowershell/public/into a single Maester.psm1, consolidates ORCA class definitions into OrcaClasses.ps1, auto-generates the FunctionsToExport list via AST parsing, and copies static assets and tests into the/moduledirectory with the manifest and custom formatting files. The source tree is never modified.Completes #1561, #1562, #1563, #1565
Contribution Checklist
Before submitting this PR, please confirm you have completed the following:
/powershell/tests/pester.ps1on your local system.