I have a little problem with nested PowerShell modules.
Get-Module correctly identifies ExportedCommands , but ModuleType is listed as Script , not Manifest :
PS>get-module ModuleType Name ExportedCommands ---------- ---- ---------------- Script Bar Get-Bar Script Foo Get-Foo
Directory structure:
|-Modules |-Foobar |-Foobar.psd1 |-Bar |-Bar.psm1 |-Foo |-Foo.psm1
Foobar.psd1:
...
Did I structure the PSD1 file correctly? In my situation, do I need a dummy / empty file Foobar.psm1 (with the corresponding entry in the PSD1 file)? Do I need a nested directory structure, or can I just include two PSM1 files (bar.psm1 and foo.psm1) in the parent directory (Foobar)?
craig source share