1
我已经写了一个我想上传到PowerShell Gallery的PowerShell脚本(https://www.powershellgallery.com/packages/upload)。在定制模块上发布PowerShell脚本
的依赖关系树我有事情如下(驻留在同一目录级别)
- script.ps1
- module1.psm1
- module2.psm1
在哪里script
的内容涉及在两个模块上调用Import-Module
,并将继续调用2个模块中声明的函数。
在发布帮助页面上,它看起来是我使用Publish-Module
或“发布脚本”的唯一选择。有没有办法将所有3个文件打包成一个上传文件?