File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
eng/common/pipelines/templates Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -266,20 +266,27 @@ extends:
266
266
- pwsh : |
267
267
Write-Host "Overrides location: $(buildArtifactsPath)/packages/overrides.json"
268
268
269
+ # Resolve EmitterPackageJsonOutputPath to absolute path if it's relative
270
+ $emitterPath = '${{ parameters.EmitterPackageJsonOutputPath }}'
271
+ if (-not [System.IO.Path]::IsPathRooted($emitterPath)) {
272
+ $emitterPath = Join-Path '$(Build.SourcesDirectory)' $emitterPath
273
+ }
274
+ Write-Host "Resolved emitter package path: $emitterPath"
275
+
269
276
if (Test-Path -Path '$(buildArtifactsPath)/packages/overrides.json') {
270
277
Write-Host "Using overrides.json to generate emitter-package.json"
271
278
Push-Location $(Build.SourcesDirectory)/eng/common/tsp-client
272
279
npm exec --no -- tsp-client generate-config-files `
273
280
--package-json '$(buildArtifactsPath)/lock-files/package.json' `
274
- --emitter-package-json-path '${{ parameters.EmitterPackageJsonOutputPath }}' `
281
+ --emitter-package-json-path "$emitterPath" `
275
282
--overrides '$(buildArtifactsPath)/packages/overrides.json'
276
283
Pop-Location
277
284
} else {
278
285
Write-Host "No overrides.json found. Running tsp-client without overrides."
279
286
Push-Location $(Build.SourcesDirectory)/eng/common/tsp-client
280
287
npm exec --no -- tsp-client generate-config-files `
281
288
--package-json '$(buildArtifactsPath)/lock-files/package.json' `
282
- --emitter-package-json-path '${{ parameters.EmitterPackageJsonOutputPath }}'
289
+ --emitter-package-json-path "$emitterPath"
283
290
Pop-Location
284
291
}
285
292
displayName: Generate emitter-package.json and emitter-package-lock files
You can’t perform that action at this time.
0 commit comments