Browse Source
Merge pull request #12804 from abpframework/yarn-and-npm-working-directory
Cli: Use `WorkingDirectory` when installing yarn & npm
pull/12805/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/ProjectModification/NpmPackagesUpdater.cs
|
|
|
@ -314,13 +314,13 @@ public class NpmPackagesUpdater : ITransientDependency |
|
|
|
protected virtual void RunYarn(string fileDirectory) |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Running Yarn on {fileDirectory}"); |
|
|
|
CmdHelper.RunCmd($"cd {fileDirectory} && yarn"); |
|
|
|
CmdHelper.RunCmd($"yarn", fileDirectory); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual void RunNpmInstall(string fileDirectory) |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Running npm install on {fileDirectory}"); |
|
|
|
CmdHelper.RunCmd($"cd {fileDirectory} && npm install"); |
|
|
|
CmdHelper.RunCmd($"npm install", fileDirectory); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual List<string> GetPackageVersionList(JProperty package) |
|
|
|
|