Browse Source

Update NpmPackagesUpdater.cs

pull/4782/head
Yunus Emre Kalkan 6 years ago
parent
commit
f9bf78ff9b
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmPackagesUpdater.cs

4
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmPackagesUpdater.cs

@ -263,8 +263,8 @@ namespace Volo.Abp.Cli.ProjectModification
versionList = versionList.OrderByDescending(SemanticVersion.Parse, new VersionComparer()).ToArray();
var newVersion = includeReleaseCandidates
? versionList.Last()
: versionList.LastOrDefault(v => v.Split("-").Length < 2);
? versionList.First()
: versionList.FirstOrDefault(v => v.Split("-").Length < 2);
var newVersionWithPrefix = $"~{newVersion}";

Loading…
Cancel
Save