-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
23 lines (22 loc) · 1.12 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
plugins {
alias(libs.plugins.org.jetbrains.kotlin.multiplatform) apply false
alias(libs.plugins.org.jetbrains.kotlin.plugin.serialization) apply false
alias(libs.plugins.com.vanniktech.maven.publish) apply false
}
/**
* Select a NodeJS version with WASI and WASM GC.
* https://github.com/Kotlin/kotlin-wasm-examples/blob/main/wasi-example/build.gradle.kts
*/
plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
extensions.getByType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().apply {
nodeVersion = "21.0.0-v8-canary20231019bd785be450"
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
}
// Suppress an error because yarn doesn't like our Node version string.
// warning You are using Node "21.0.0-v8-canary202309143a48826a08" which is not supported and
// may encounter bugs or unexpected behavior.
// error [email protected]: The engine "node" is incompatible with this module.
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().all {
args += "--ignore-engines"
}
}