Merging module content
Dot-sourcing module content is useful when a module is being developed, it allows a developer to realize the benefits of having module content split into separate files. It is possible to leave the module as it is, it can be published; many popular modules are. To realize the benefit of a single root module file, the content might be merged. This operation can be performed when testing a module, or when preparing a module for release.
There are a number of modules available that can be used to perform this step. For example, the ModuleBuilder module is capable of merging module content. The ModuleBuilder module requires a build.psd1 file in the root of the module (adjacent to LocalMachine.psd1). The build.psd1 file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access