Browse Source
keep the prefix of the package version.
pull/20044/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
11 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmPackagesUpdater.cs
|
|
|
@ -250,6 +250,17 @@ public class NpmPackagesUpdater : ITransientDependency |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
var prefix = string.Empty; |
|
|
|
if (package.Value.ToString().StartsWith("~")) |
|
|
|
{ |
|
|
|
prefix = "~"; |
|
|
|
} |
|
|
|
else if (package.Value.ToString().StartsWith("^")) |
|
|
|
{ |
|
|
|
prefix = "^"; |
|
|
|
} |
|
|
|
|
|
|
|
version = prefix + version.RemovePreFix("~", "^"); |
|
|
|
package.Value.Replace(version); |
|
|
|
|
|
|
|
Logger.LogInformation( |
|
|
|
|