Skip to content

Commit

Permalink
Fix stored DirectoryPath for a perf-test package (#32249)
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Dec 17, 2024
1 parent b5e87e7 commit 203036d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ function Get-javascript-PackageInfoFromRepo ($pkgPath, $serviceDirectory) {
foreach ($projectPath in $projectPaths) {
if (Test-Path $projectPath) {
$projectJson = Get-Content $projectPath | ConvertFrom-Json
$projectDirectory = Split-Path $projectPath

$jsStylePkgName = $projectJson.name.Replace("@", "").Replace("/", "-")

$pkgProp = [PackageProps]::new($projectJson.name, $projectJson.version, $pkgPath, $serviceDirectory)
$pkgProp = [PackageProps]::new($projectJson.name, $projectJson.version, $projectDirectory, $serviceDirectory)
if ($projectJson.psobject.properties.name -contains 'sdk-type') {
$pkgProp.SdkType = $projectJson.psobject.properties['sdk-type'].value
}
Expand Down

0 comments on commit 203036d

Please sign in to comment.