Skip to content

Commit b91676b

Browse files
committed
Fix the issue with accessing the shouldEnsureConsistentVersions method.
1 parent 7aa7b9f commit b91676b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Fix the issue of accessing shouldEnsureConsistentVersions method incorrectly",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush"
10+
}

libraries/rush-lib/src/cli/actions/VersionAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class VersionAction extends BaseRushAction {
216216
// Validate result of all subspaces
217217
for (const subspace of rushConfig.subspaces) {
218218
// Respect the `ensureConsistentVersions` field in rush.json
219-
if (!subspace.shouldEnsureConsistentVersions) {
219+
if (!subspace.shouldEnsureConsistentVersions(variant)) {
220220
return;
221221
}
222222

0 commit comments

Comments
 (0)