[Gradle, JS] Add verbose option to yarn in debug mode
This commit is contained in:
+3
-1
@@ -29,7 +29,9 @@ abstract class YarnBasics : NpmApi {
|
|||||||
|
|
||||||
project.execWithProgress(description) { exec ->
|
project.execWithProgress(description) { exec ->
|
||||||
exec.executable = nodeJsEnv.nodeExecutable
|
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
|
exec.workingDir = dir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user