@@ -269,25 +269,21 @@ extends:
269
269
if (-not [System.IO.Path]::IsPathRooted($emitterPath)) {
270
270
$emitterPath = Join-Path '$(Build.SourcesDirectory)' $emitterPath
271
271
}
272
- Write-Host "##vso[task.setvariable variable=ResolvedEmitterPath]$emitterPath"
273
- displayName: Resolve emitter package path
274
- workingDirectory: $(Build.SourcesDirectory)
275
272
276
- - pwsh : |
277
273
Write-Host "Overrides location: $(buildArtifactsPath)/packages/overrides.json"
278
- Write-Host "Resolved emitter package path: $(ResolvedEmitterPath) "
274
+ Write-Host "Resolved emitter package path: $emitterPath "
279
275
280
276
if (Test-Path -Path '$(buildArtifactsPath)/packages/overrides.json') {
281
277
Write-Host "Using overrides.json to generate emitter-package.json"
282
278
npm exec --no -- tsp-client generate-config-files `
283
279
--package-json '$(buildArtifactsPath)/lock-files/package.json' `
284
- --emitter-package-json-path '$(ResolvedEmitterPath)' `
280
+ --emitter-package-json-path "$emitterPath" `
285
281
--overrides '$(buildArtifactsPath)/packages/overrides.json'
286
282
} else {
287
283
Write-Host "No overrides.json found. Running tsp-client without overrides."
288
284
npm exec --no -- tsp-client generate-config-files `
289
285
--package-json '$(buildArtifactsPath)/lock-files/package.json' `
290
- --emitter-package-json-path '$(ResolvedEmitterPath)'
286
+ --emitter-package-json-path "$emitterPath"
291
287
}
292
288
displayName: Generate emitter-package.json and emitter-package-lock files
293
289
workingDirectory: $(Build.SourcesDirectory)/eng/common/tsp-client
0 commit comments