Description
When you now use the #Requires -Modules keywords, it will use the built in package manager to get the modules from the package repository. Instead I want to evaluate if we can build modules that when imported, will use Save-PSResource and store the dependencies in the nested module instead of in the users module context.
This keeps the functionality of the packages getting usage metrics, while not colliding with what ever the user has installed. This should be a setting so that it can be disabled for modules when they are built.
The nested module loader would need to be built into the root module file via build-psmodule.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.psresourceget/about/about_psresourceget?view=powershellget-3.x#searching-by-required-resources