Skip to content

Commit 08139d2

Browse files
authored
Update RunVersionController.ps1 (#21186)
1 parent 3183dbd commit 08139d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/RunVersionController.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ function Bump-AzVersion
296296

297297
Update-ModuleManifest -Path "$PSScriptRoot\Az\Az.psd1" -ModuleVersion $newVersion -ReleaseNotes $releaseNotes
298298
Update-ChangeLog -Content $changeLog -RootPath $rootPath
299+
300+
New-CommandMappingFile
301+
299302
return $versionBump
300303
}
301304

@@ -336,6 +339,7 @@ function Update-AzPreview
336339

337340
function New-CommandMappingFile
338341
{
342+
# Regenerate the cmdlet-to-module mappings for the recommendation feature of uninstalled modules
339343
$MappingsFilePath = "$PSScriptRoot\..\src\Accounts\Accounts\Utilities\CommandMappings.json"
340344
Write-Host "Generating command mapping file at $MappingsFilePath"
341345
$content = Get-Content $MappingsFilePath | ConvertFrom-Json -Depth 10
@@ -448,7 +452,5 @@ switch ($PSCmdlet.ParameterSetName)
448452
# Refresh AzPreview.psd1
449453
Update-AzPreview
450454

451-
New-CommandMappingFile
452-
453455
# Generate dotnet csv
454456
&$PSScriptRoot/Docs/GenerateDotNetCsv.ps1 -FeedPsd1FullPath "$PSScriptRoot\AzPreview\AzPreview.psd1"

0 commit comments

Comments
 (0)