[smoke-tests] skip overriding version for dependency not managed in this repo (#22532)
* [smoke-tests] skip overriding version for dependency not managed in this repo `@azure/msal-node` is not managed in this repo, so we should keep the version specified in package.json. * Update common/smoke-test/Initialize-SmokeTests.ps1 Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com> Co-authored-by: Albert Cheng <38804567+ckairen@users.noreply.github.com>
This commit is contained in:
Родитель
01c458493a
Коммит
b03348a145
|
@ -145,8 +145,10 @@ function Update-SampleDependencies {
|
|||
$packageSpec = (Get-Content -Path "$($sample.SamplesDirectory)/package.json"
|
||||
| ConvertFrom-Json -AsHashtable)
|
||||
|
||||
# some @azure/ packages are not managed in our repo thus should not be overriden
|
||||
$packagesToSkip = @("@azure/msal-node")
|
||||
foreach ($dep in $packageSpec.dependencies.Keys) {
|
||||
if ($dep.StartsWith('@azure/')) {
|
||||
if ($dep.StartsWith('@azure/') -and ($dep -notin $packagesToSkip)) {
|
||||
if ($Daily) {
|
||||
$dependencies[$dep] = "dev"
|
||||
} elseif ($dep -in $TagOverridePackages) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче