Fixes external dependencies in updated module manifest files #7

Merged
OCram85 merged 12 commits from fixExtDeps into master 2022-07-27 14:27:45 +02:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit f5494e9eb2 - Show all commits

View File

@ -48,7 +48,7 @@ Describe 'Update-ModuleMeta' {
$Env:DRONE_SEMVER = '9.9.9-dev9' $Env:DRONE_SEMVER = '9.9.9-dev9'
$Env:DRONE_SEMVER_SHORT = '9.9.9' $Env:DRONE_SEMVER_SHORT = '9.9.9'
$Env:DRONE_SEMVER_PRERELEASE = 'dev9' $Env:DRONE_SEMVER_PRERELEASE = 'dev9'
Update-ModuleMeta Update-ModuleMeta -Verbose
} | Should -Not -Throw } | Should -Not -Throw
$data = Import-PowerShellDataFile -Path './resources/MyModule.psd1' $data = Import-PowerShellDataFile -Path './resources/MyModule.psd1'
$data.ModuleVersion | Should -Be '9.9.9' $data.ModuleVersion | Should -Be '9.9.9'

View File

@ -74,6 +74,7 @@ function Update-ModuleMeta {
PassThru = $true PassThru = $true
Encoding = 'utf8NoBom' Encoding = 'utf8NoBom'
Force = $true Force = $true
Verbose = $VerbosePreference
} }
try { try {
$ModManifestData | ConvertTo-Psd | Set-Content @OutputFileParams $ModManifestData | ConvertTo-Psd | Set-Content @OutputFileParams