Skip to content

Commit 5483e6a

Browse files
authored
Update Invoke-GenerateAndBuildV2.ps1 (Azure#52016)
added update-if-exists flag to tsp-client command call
1 parent 4aa37ff commit 5483e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/scripts/Invoke-GenerateAndBuildV2.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if ($relatedTypeSpecProjectFolder) {
129129
}
130130
$repo = $repoHttpsUrl -replace "https://github.com/", ""
131131
Write-host "Start to call tsp-client to generate package:$packageName"
132-
$tspclientCommand = "npx --package=@azure-tools/typespec-client-generator-cli --yes tsp-client init --tsp-config $tspConfigFile --repo $repo --commit $commitid"
132+
$tspclientCommand = "npx --package=@azure-tools/typespec-client-generator-cli --yes tsp-client init --update-if-exists --tsp-config $tspConfigFile --repo $repo --commit $commitid"
133133
if ($swaggerDir) {
134134
$tspclientCommand += " --local-spec-repo $typespecFolder"
135135
}

0 commit comments

Comments
 (0)