From 00ea0672389d29f720aeab291fe039d892a1e957 Mon Sep 17 00:00:00 2001 From: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com> Date: Mon, 28 Jun 2021 13:11:52 -0400 Subject: [PATCH] Support track2 management packages (#15975) * Support track2 management packages --- eng/tools/rush-runner.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/tools/rush-runner.js b/eng/tools/rush-runner.js index 68ed7f89cfc3..3710e620592a 100644 --- a/eng/tools/rush-runner.js +++ b/eng/tools/rush-runner.js @@ -54,7 +54,6 @@ const getPackageJsons = (searchDir) => { // This gets all the directories with package.json at the `sdk//` level excluding "arm-" packages const sdkDirectories = fs .readdirSync(searchDir) - .filter((f) => !f.startsWith("arm-")) // exclude libraries starting with "arm-" .map((f) => path.join(searchDir, f, "package.json")); // turn potential directory names into package.json paths // This gets all the directories with package.json at the `sdk///perf-tests` level excluding "-track-1" perf test packages @@ -78,7 +77,7 @@ const getServicePackages = (baseDir, serviceDirs) => { const packageJsons = getPackageJsons(searchDir); for (const filePath of packageJsons) { const contents = JSON.parse(fs.readFileSync(filePath, "utf8")); - if (contents["sdk-type"] === "client") { + if (contents["sdk-type"] === "client" || contents["sdk-type"] === "mgmt") { packageNames.push(contents.name); packageDirs.push(path.dirname(filePath)); }