🩹 [Patch]: Build root module from files before subfolders #83
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 includes several changes to improve the organization and processing of module files in the PowerShell build scripts. The most important changes include modifying the order and method of adding content from subfolders, reorganizing the script regions, and ensuring consistent sorting of files and folders.
Changes to file processing order and method:
README.md: Changed the order of processing subfolder content and clarified that files are processed recursively in alphabetical order.scripts/helpers/Build/Add-ContentFromItem.ps1: Moved the processing of subfolders to occur after processing files in the current folder, ensuring a more logical and efficient order. [1] [2]Reorganization of script regions:
scripts/helpers/Build/Build-PSModuleRootModule.ps1: Added and reorganized region headers for better readability and structure, including "Class exporter," "Module post-header," "Data importer," and "Member exporter" sections. [1] [2] [3] [4]Consistency improvements:
scripts/helpers/Build/Build-PSModuleRootModule.ps1: Ensured consistent sorting of files and folders by name before processing, improving the predictability of the build process. [1] [2]scripts/helpers/Build/Get-PSModuleClassesToExport.ps1: Sorted files by name before processing to maintain consistency.Type of change
Checklist