This commit is contained in:
parent
4b05d6a985
commit
f5494e9eb2
@ -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'
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user