[Gradle, JS] Add verbose option to yarn in debug mode

This commit is contained in:
Ilya Goncharov
2019-11-21 12:20:46 +03:00
parent 28f2a2a864
commit ac241852de
@@ -29,7 +29,9 @@ abstract class YarnBasics : NpmApi {
project.execWithProgress(description) { exec ->
exec.executable = nodeJsEnv.nodeExecutable
exec.args = listOf(yarnEnv.home.resolve("bin/yarn.js").absolutePath) + args
exec.args = listOf(yarnEnv.home.resolve("bin/yarn.js").absolutePath) +
args +
if (project.logger.isDebugEnabled) "--verbose" else ""
exec.workingDir = dir
}
}