diff --git a/build.gradle.kts b/build.gradle.kts index 3eecc7e2..63c56855 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,6 +23,8 @@ */ import org.jetbrains.kotlin.gradle.dsl.KotlinCompile import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin plugins { kotlin("multiplatform") apply false @@ -61,6 +63,10 @@ subprojects { } } +plugins.withType(NodeJsRootPlugin::class.java) { + the().nodeVersion = "16.14.2" +} + if (System.getenv("CHROME_BIN") == null) { gradle.taskGraph.beforeTask { if (name in setOf("jsTest", "jsBrowserTest", "browserTest")) {