Browse Source

Merge pull request #12806 from abpframework/yarn-and-npm-working-directory2

Cli: Use WorkingDirectory when running install-libs
pull/12807/head
albert 4 years ago
committed by GitHub
parent
commit
f955038f29
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

4
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/LIbs/InstallLibsService.cs

@ -236,13 +236,13 @@ public class InstallLibsService : IInstallLibsService, ITransientDependency
private void RunNpmInstall(string directory)
{
Logger.LogInformation($"Running npm install on {directory}");
CmdHelper.RunCmd($"cd {directory} && npm install");
CmdHelper.RunCmd($"npm install", directory);
}
private void RunYarn(string directory)
{
Logger.LogInformation($"Running Yarn on {directory}");
CmdHelper.RunCmd($"cd {directory} && yarn");
CmdHelper.RunCmd($"yarn", directory);
}
private bool IsNpmInstalled()

Loading…
Cancel
Save