Skip to content

How can I merge my main module & a required module into one .psm1 file? #113

@PiggiesGoSqueal

Description

@PiggiesGoSqueal

First off, thank you so much for creating this project. It is very helpful.

Secondly, I have 2 modules that are using ModuleBuilder:

  1. ComputerToolKit
  2. NewComputerSetup (Requires ComputerToolKit's functions to run)

I'd like the functions of both modules to be in one .psm1 file to prevent issues when I copy/paste it to our RMM solution. Note neither of these modules are on PS Gallery.

In the NewComputerSetup module manifest I tried specifying the below but it did not work:
RequiredModules = @('\\Source\ComputerToolKit.psd1')
I also tried: RequiredModules = @('ComputerToolKit')

Resources I've Checked
I've been reading through the Github pages for this Project and have been using get-help Build-Module but I'm not seeing a solution.

If someone would be willing to help me I'd greatly appreciate some feedback! Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions