Fixes external dependencies in updated module manifest files #7
@ -48,7 +48,7 @@ Describe 'Update-ModuleMeta' {
|
||||
$Env:DRONE_SEMVER = '9.9.9-dev9'
|
||||
$Env:DRONE_SEMVER_SHORT = '9.9.9'
|
||||
$Env:DRONE_SEMVER_PRERELEASE = 'dev9'
|
||||
Update-ModuleMeta
|
||||
Update-ModuleMeta -Verbose
|
||||
} | Should -Not -Throw
|
||||
$data = Import-PowerShellDataFile -Path './resources/MyModule.psd1'
|
||||
$data.ModuleVersion | Should -Be '9.9.9'
|
||||
|
@ -74,6 +74,7 @@ function Update-ModuleMeta {
|
||||
PassThru = $true
|
||||
Encoding = 'utf8NoBom'
|
||||
Force = $true
|
||||
Verbose = $VerbosePreference
|
||||
}
|
||||
try {
|
||||
$ModManifestData | ConvertTo-Psd | Set-Content @OutputFileParams
|
||||
|
Reference in New Issue
Block a user