Closed bergmeister closed 6 years ago
Note that I could resolve my issue by using NestedModules
instead where the relative path .\
to the dependent module worked. Maybe this is by design but I found the documentation to be not very helpful/intuitive.
Since the dependency is part of the module folder, it is needs to be listed as part of the NestedModules entry. New-ModuleManifest cmdlet documentation can be found here.
thanks
I am trying to publish a module that declares a dependency on another module in the manifest and this dependency gets shipped as part of the module in the same working directory. I declare it as:
Publish-Module
would only allow me to upload the module if I replaced$PSScriptRoot
with.\
so that it becomesRequiredModules = @(".\vsts-cli-tabcompletion.psd1")
but when someone installs this module then, they would get an error when importing since they would be in a different working directory.Expected Behavior
Module uploads without errors.
Current Behavior
Publish-Module
returns an error:Your Environment