Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd70e99b

Browse files
committed
Put the "preferred versions from common-versions.json" entry first.
1 parent5300d0b commitd70e99b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎apps/rush-lib/src/logic/versionMismatch/VersionMismatchFinder.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,17 @@ export class VersionMismatchFinder {
9494
): VersionMismatchFinder {
9595
const commonVersions: CommonVersionsConfiguration = rushConfiguration.getCommonVersions(options.variant);
9696

97-
const projects: VersionMismatchFinderEntity[] = rushConfiguration.projects.map((project) => {
98-
return new VersionMismatchFinderProject(project);
99-
});
97+
const projects: VersionMismatchFinderEntity[] = [];
10098

10199
// Create an object for the purposes of reporting conflicts with preferredVersions
102100
// or xstitchPreferredVersions from common-versions.json
101+
// Make sure this one is first so it doesn't get truncated when a long list is printed
103102
projects.push(new VersionMismatchFinderCommonVersions(commonVersions));
104103

104+
for (const project of rushConfiguration.projects) {
105+
projects.push(new VersionMismatchFinderProject(project));
106+
}
107+
105108
return new VersionMismatchFinder(projects, commonVersions.allowedAlternativeVersions);
106109
}
107110

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp