Browse Source

fix build errors

pull/22611/head
Yunus Emre Kalkan 10 months ago
parent
commit
c0b68f53ff
  1. 8
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmPackagesUpdater.cs

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

@ -167,7 +167,7 @@ public class NpmPackagesUpdater : ITransientDependency
bool includePreRc = false)
{
var packagesUpdated = false;
var fileContent = await File.ReadAllTextAsync(filePath);
var fileContent = File.ReadAllText(filePath);
var packageJson = JObject.Parse(fileContent);
var abpPackages = GetAbpPackagesFromPackageJson(packageJson);
@ -189,8 +189,8 @@ public class NpmPackagesUpdater : ITransientDependency
var updatedContent = packageJson.ToString(Formatting.Indented);
await File.WriteAllTextAsync(filePath, updatedContent);
File.WriteAllText(filePath, updatedContent);
return packagesUpdated;
}
@ -210,7 +210,7 @@ public class NpmPackagesUpdater : ITransientDependency
if (!specifiedVersion.IsNullOrWhiteSpace())
{
if (package.Name.Contains("leptonx", StringComparison.InvariantCultureIgnoreCase) && !specifiedLeptonXVersion.IsNullOrWhiteSpace())
if (package.Name.IndexOf("leptonx", StringComparison.InvariantCultureIgnoreCase) > 0 && !specifiedLeptonXVersion.IsNullOrWhiteSpace())
{
if (!SpecifiedVersionExists(specifiedLeptonXVersion, package))
{

Loading…
Cancel
Save