[Gradle, JS] Set cli args for yarn install

This commit is contained in:
Ilya Goncharov
2019-10-11 11:42:37 +03:00
parent 7b0646d2a5
commit ee49c96650
2 changed files with 8 additions and 0 deletions
@@ -29,6 +29,10 @@ tasks {
outputs.upToDateWhen {
projectDir.resolve("node_modules").isDirectory
}
// Without it several yarns can works incorrectly
(this as YarnTask).apply {
args = listOf("--network-concurrency", "1", "--mutex", "network")
}
}
register<YarnTask>("yarnBuild") {
@@ -33,6 +33,10 @@ tasks {
outputs.upToDateWhen {
projectDir.resolve("node_modules").isDirectory
}
// Without it several yarns can works incorrectly
(this as YarnTask).apply {
args = listOf("--network-concurrency", "1", "--mutex", "network")
}
}
register<YarnTask>("yarnBuild") {