Skip to content

Commit b2f2828

Browse files
author
Andrew Omondi
committed
fix: fix missing metadata in ts generation.
1 parent 7aefe44 commit b2f2828

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.azure-pipelines/generation-templates/java-kiota.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ steps:
1818
RepoModelsDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/main/java/${{ parameters.namespacePath }}/generated/
1919

2020
- pwsh: |
21-
Move-Item -Path "*.txt","*.json" -Destination $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/main/java/${{ parameters.namespacePath }}/generated/
21+
Move-Item -Path "*.txt","*.json" -Destination "$(Build.SourcesDirectory)/${{ parameters.repoName }}/src/main/java/${{ parameters.namespacePath }}/generated/"
2222
displayName: Move kiota specific metadata to expected location (txt for export file, json for lock or workspace file)
2323
workingDirectory: $(kiotaDirectory)/output/

.azure-pipelines/generation-templates/typescript-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ steps:
1515
- pwsh : $(Build.SourcesDirectory)/${{ parameters.repoName }}/scripts/incrementMinorVersion.ps1
1616
displayName: 'Increment minor version number'
1717
workingDirectory: '$(Build.SourcesDirectory)/${{ parameters.repoName }}/scripts'
18+
19+
20+
- pwsh: |
21+
Move-Item -Path "*.txt","*.json" -Destination "$(Build.SourcesDirectory)/${{ parameters.repoName }}/packages/"
22+
displayName: Move kiota specific metadata to expected location (txt for export file, json for lock or workspace file)
23+
workingDirectory: $(kiotaDirectory)/output/

scripts/copy-typescript-sdk-models.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ foreach ($directory in $packagesDirectories) {
2222
Invoke-Expression "$PSScriptRoot\fix-typescript-fluent-packages-imports.ps1 -targetDirectory $($directory.FullName) -packageName $packageName"
2323
}
2424

25-
Write-Host "Copied the generated files into the repo. From: $env:OutputFullPath to: $env:RepoModelsDir" -ForegroundColor Green
25+
Write-Host "Copied the generated files into the repo. From: $sourceDirectory to: $targetDirectory" -ForegroundColor Green

0 commit comments

Comments
 (0)