File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ function Get-PackageDependencies {
9292}
9393
9494$InjectedDependencies = @ (
95- ' @azure-tools/typespec-client-generator-core'
95+ ' @azure-tools/typespec-client-generator-core' ,
96+ ' @azure-tools/typespec-azure-core' ,
97+ ' @typespec/http' ,
98+ ' @typespec/openapi'
9699)
97100
98101Write-Log " Starting TypeSpec generator update process"
@@ -210,6 +213,16 @@ try {
210213 } catch {
211214 Write-Warning - Log " OpenAI code generation failed: $_ "
212215 }
216+ Pop-Location
217+
218+ # Export the API
219+ Write-Log " Updating API"
220+ Push-Location " ."
221+ try {
222+ pwsh scripts/ Export-Api.ps1
223+ } catch {
224+ Write-Warning - Log " Exporting API failed: $_ "
225+ }
213226 Pop-Location
214227
215228 # Check if there are changes to commit
@@ -227,6 +240,7 @@ try {
227240 Write-Log " Adding and committing changes"
228241 git add codegen/ package.json
229242 git add codegen/ generator/ src/ OpenAI.Library.Plugin.csproj
243+ git add api
230244 git add package- lock.json
231245 git add ./ # Add any generated code changes
232246
You can’t perform that action at this time.
0 commit comments