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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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() |
|
|
|
|