Skip to content

Commit d0d2830

Browse files
build: add more pinned dep. to upgrade script (#632)
* build: add more pinned dep. to upgrade script * build: export API
1 parent 4376162 commit d0d2830

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

scripts/Submit-GeneratorUpdatePr.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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

98101
Write-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

0 commit comments

Comments
 (0)