Skip to content

Commit

Permalink
Support track2 management packages (#15975)
Browse files Browse the repository at this point in the history
* Support track2 management packages
  • Loading branch information
praveenkuttappan authored Jun 28, 2021
1 parent d3647f8 commit 00ea067
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eng/tools/rush-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const getPackageJsons = (searchDir) => {
// This gets all the directories with package.json at the `sdk/<service>/<service-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/<service>/<service-sdk>/perf-tests` level excluding "-track-1" perf test packages
Expand All @@ -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));
}
Expand Down

0 comments on commit 00ea067

Please sign in to comment.