[Gradle, JS] Not run task if root package.json doesn't exist
#KT-34832 fixed
This commit is contained in:
+4
@@ -13,6 +13,10 @@ import java.io.File
|
||||
open class KotlinNpmInstallTask : DefaultTask() {
|
||||
init {
|
||||
check(project == project.rootProject)
|
||||
|
||||
onlyIf {
|
||||
rootPackageJson.exists()
|
||||
}
|
||||
}
|
||||
|
||||
private val nodeJs get() = NodeJsRootPlugin.apply(project.rootProject)
|
||||
|
||||
Reference in New Issue
Block a user