Skip to content

Commit c0b68f5

Browse files
committed
fix build errors
1 parent a859835 commit c0b68f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected virtual async Task<bool> UpdatePackagesInFile(
167167
bool includePreRc = false)
168168
{
169169
var packagesUpdated = false;
170-
var fileContent = await File.ReadAllTextAsync(filePath);
170+
var fileContent = File.ReadAllText(filePath);
171171
var packageJson = JObject.Parse(fileContent);
172172
var abpPackages = GetAbpPackagesFromPackageJson(packageJson);
173173

@@ -189,8 +189,8 @@ protected virtual async Task<bool> UpdatePackagesInFile(
189189

190190
var updatedContent = packageJson.ToString(Formatting.Indented);
191191

192-
await File.WriteAllTextAsync(filePath, updatedContent);
193-
192+
File.WriteAllText(filePath, updatedContent);
193+
194194
return packagesUpdated;
195195
}
196196

@@ -210,7 +210,7 @@ protected virtual async Task<bool> TryUpdatingPackage(
210210

211211
if (!specifiedVersion.IsNullOrWhiteSpace())
212212
{
213-
if (package.Name.Contains("leptonx", StringComparison.InvariantCultureIgnoreCase) && !specifiedLeptonXVersion.IsNullOrWhiteSpace())
213+
if (package.Name.IndexOf("leptonx", StringComparison.InvariantCultureIgnoreCase) > 0 && !specifiedLeptonXVersion.IsNullOrWhiteSpace())
214214
{
215215
if (!SpecifiedVersionExists(specifiedLeptonXVersion, package))
216216
{

0 commit comments

Comments
 (0)