🩹 [Patch]: Remove other modules before reimporting reqs for processed module #80
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 changes to the
scripts/helpers/Builddirectory, focusing on improving the handling of module outputs and dependencies. The most important changes are as follows:Improvements to module output handling:
scripts/helpers/Build/Build-PSModuleRootModule.ps1: Suppressed the 'PSAvoidUsingWriteHost' warning to allow direct console output instead of writing to the pipeline.scripts/helpers/Build/Build-PSModuleRootModule.ps1: ChangedShow-FileContentcalls to useWrite-Hostfor direct console output in the 'Build root module - Result' sections. [1] [2]Enhancements to module dependency handling:
scripts/helpers/Build/Import-PSModule.ps1: Added logic to remove required and nested modules of an existing module before re-importing it, ensuring a clean state.Type of change
Checklist