Skip to content

Commit c8d3914

Browse files
committed
Fix an issue where "rush add" erroneously believes ensureConsistentVersions is unset.
1 parent b6eb90e commit c8d3914

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/rush-lib/src/logic/PackageJsonUpdater.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export class PackageJsonUpdater {
322322
+ ` the version range "${initialSpec}"`);
323323
}
324324
} else {
325-
if (initialSpec !== 'latest') {
325+
if (!this._rushConfiguration.ensureConsistentVersions) {
326326
console.log(colors.gray(`The "ensureConsistentVersions" policy is NOT active,`
327327
+ ` so we will assign the latest version.`));
328328
console.log();

0 commit comments

Comments
 (0)