Skip to content

Commit

Permalink
Use url version spec for autorest.* packages (#2654)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Hallisey <pahallis@microsoft.com>
  • Loading branch information
azure-sdk and hallipr committed Oct 11, 2023
1 parent 5d1d6d0 commit 66f46bd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions eng/common/scripts/TypeSpec-Project-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ function NpmInstallForProject([string]$workingDirectory) {
Copy-Item -Path $emitterPackageLock -Destination "package-lock.json" -Force
}

$useAlphaNpmRegistry = (Get-Content $replacementPackageJson -Raw).Contains("-alpha.")

if($useAlphaNpmRegistry) {
Write-Host "Package.json contains '-alpha.' in the version, Creating .npmrc using public/azure-sdk-for-js-test-autorest feed."
"registry=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest@local/npm/registry/ `n`nalways-auth=true" | Out-File '.npmrc'
}

if ($usingLockFile) {
Invoke-LoggedCommand "npm ci"
}
Expand Down

0 comments on commit 66f46bd

Please sign in to comment.