diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index d340b227cc3c..2f71c029ae03 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -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 }