Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backwards warning that global CLI is greater version than local CLI #…
…4337: Fixed comparation of versions (inverse).
  • Loading branch information
m500574 Michael Füser committed Feb 2, 2017
commit 7e78b56ee376efd1cc64ac95c80b24a96c4beac1
2 changes: 1 addition & 1 deletion packages/@angular/cli/bin/ng
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resolve('@angular/cli', { basedir: process.cwd() },

try {
localVersion = _fromPackageJson();
shouldWarn = localVersion && globalVersion.compare(localVersion) < 0;
shouldWarn = localVersion && globalVersion.compare(localVersion) > 0;
} catch (e) {
console.error(e);
shouldWarn = true;
Expand Down