Catesta icon indicating copy to clipboard operation
Catesta copied to clipboard

Support namespaced module

Open OnceUponALoop opened this issue 4 months ago • 0 comments

Description

Catesta does not support a namespaced module name (ex. MyModule.Utils)

Describe the solution you'd like

Simply support module names with a dot/period.

Describe any alternatives you've considered

Additional context

At a glance, it seems a simple change to Module.build.ps1 $ModuleName parsing will address this.

From $ModuleName = (Split-Path -Path $BuildFile -Leaf).Split('.')[0] and $script:ModuleName = (Split-Path -Path $BuildFile -Leaf).Split('.')[0]

To $ModuleName = ((Get-Item $BuildFile).BaseName) -replace ".build$" and $script:ModuleName = ((Get-Item $BuildFile).BaseName) -replace ".build$"

OnceUponALoop avatar Feb 14 '24 17:02 OnceUponALoop