[Gradle, JS] Set cli args for yarn install
This commit is contained in:
@@ -29,6 +29,10 @@ tasks {
|
|||||||
outputs.upToDateWhen {
|
outputs.upToDateWhen {
|
||||||
projectDir.resolve("node_modules").isDirectory
|
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") {
|
register<YarnTask>("yarnBuild") {
|
||||||
|
|||||||
@@ -33,6 +33,10 @@ tasks {
|
|||||||
outputs.upToDateWhen {
|
outputs.upToDateWhen {
|
||||||
projectDir.resolve("node_modules").isDirectory
|
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") {
|
register<YarnTask>("yarnBuild") {
|
||||||
|
|||||||
Reference in New Issue
Block a user