Skip to content

Commit 269e8c9

Browse files
🩹[Patch] Update module manifest formatting (#16)
- Now uses `Set-ModuleManifest` from `Utilities` to update and format the module manifest.
1 parent f4cd2a6 commit 269e8c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/helpers/Publish-PSModule.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,12 @@ function Publish-PSModule {
300300
Start-LogGroup 'Update module manifest'
301301
Write-Verbose 'Bump module version -> module metadata: Update-ModuleMetadata'
302302
$manifestNewVersion = "$($newVersion.Major).$($newVersion.Minor).$($newVersion.Patch)"
303-
Update-ModuleManifest -Path $manifestFilePath -ModuleVersion $manifestNewVersion -Verbose:$false
303+
Set-ModuleManifest -Path $manifestFilePath -ModuleVersion $manifestNewVersion -Verbose:$false
304304
Show-FileContent -Path $manifestFilePath
305305
if ($createPrerelease) {
306306
Write-Verbose "Prerelease is: [$($newVersion.Prerelease)]"
307-
Update-ModuleManifest -Path $manifestFilePath -Prerelease $($newVersion.Prerelease) -Verbose:$false
307+
Set-ModuleManifest -Path $manifestFilePath -Prerelease $($newVersion.Prerelease) -Verbose:$false
308308
}
309-
Format-ModuleManifest -Path $manifestFilePath
310309
Stop-LogGroup
311310

312311
Start-LogGroup 'Format manifest file - Result'

0 commit comments

Comments
 (0)