Skip to content

Commit

Permalink
Cleanup eng\scripts\Language-Settings.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Mar 19, 2021
1 parent 7ed7dd5 commit 71bb8dd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ function Confirm-NodeInstallation
}
}

function Get-javascript-PackageInfoFromRepo ($pkgPath, $serviceDirectory, $pkgName)
function Get-javascript-PackageInfoFromRepo ($pkgPath, $serviceDirectory)
{
$projectPath = Join-Path $pkgPath "package.json"
if (Test-Path $projectPath)
{
$projectJson = Get-Content $projectPath | ConvertFrom-Json
$jsStylePkgName = $projectJson.name.Replace("@", "").Replace("/", "-")
if ($pkgName -and ($pkgName -ne $jsStylePkgName -and $pkgName -ne $projectJson.name))
{
return $null
}

$pkgProp = [PackageProps]::new($projectJson.name, $projectJson.version, $pkgPath, $serviceDirectory)
$pkgProp.SdkType = $projectJson.psobject.properties['sdk-type'].value
if ($projectJson.name.StartsWith("@azure/arm"))
Expand Down Expand Up @@ -260,7 +257,7 @@ function Find-javascript-Artifacts-For-Apireview($artifactDir, $packageName = ""
return $packages
}

function SetPackageVersion ($PackageName, $Version, $ServiceDirectory = $null, $ReleaseDate, $BuildType = $null, $GroupId = $null)
function SetPackageVersion ($PackageName, $Version, $ReleaseDate)
{
if ($null -eq $ReleaseDate)
{
Expand Down

0 comments on commit 71bb8dd

Please sign in to comment.