PoshCode / ModuleBuilder

A PowerShell Module to help scripters write, version, sign, package, and publish.
MIT License
445 stars 54 forks source link

Import source module manifest without failing #95

Closed johlju closed 3 years ago

johlju commented 4 years ago

This fixes an issue that still exist when there is no build module manifest and the SourcePath is a folder that does not contain the module name.

Prior to this fix the build was successful if SourcePath was either c:\source\ModuleName or c:\source\ModuleName\source\ModuleName.psd1, but failed if SourcePath was c:\source\s (and the module manifest was in c:\source\s\source\ModuleName.psd1. This is solved with this PR.


This change is Reviewable

johlju commented 4 years ago

@Jaykul when you have time, could you please review this PR?

johlju commented 4 years ago

Reopen to change to suggestion in issue.

johlju commented 3 years ago

Hmm. I forgot about this PR. Need to get back to this too.