Open mgreenegit opened 6 years ago
@mgreenegit Could you please provide more details on the end-user scenario and expected functionality? If you know that the specified value is a module name, why can't you use the Name parameter?
The Name parameter only works if the module is in psmodulepath. For CI environments, it is more likely to be staged in a project or artifact folder.
Please consider allowing ‘Name’ parameter when ‘Path’ is used, then pass the value as the name for the module in the package.
https://github.com/PowerShell/PowerShellGet/blob/development/PowerShellGet/public/psgetfunctions/Publish-Module.ps1#L299