File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
2
+ import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask
3
+
1
4
/*
2
5
* Copyright 2020 Russell Wolf
3
6
*
@@ -105,3 +108,12 @@ val isReleaseBuild: Boolean
105
108
apiValidation {
106
109
ignoredProjects.add(" tests" )
107
110
}
111
+
112
+ // Need new enough node for WASM as of Kotlin 1.9.20
113
+ rootProject.extensions.findByType<NodeJsRootExtension >()?.apply {
114
+ nodeVersion = " 21.0.0-v8-canary202309143a48826a08"
115
+ nodeDownloadBaseUrl = " https://nodejs.org/download/v8-canary"
116
+ }
117
+ tasks.withType<KotlinNpmInstallTask >().configureEach {
118
+ args.add(" --ignore-engines" )
119
+ }
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
2
+ import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask
3
+
1
4
/*
2
5
* Copyright 2020 Russell Wolf
3
6
*
@@ -32,3 +35,12 @@ allprojects {
32
35
maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
33
36
}
34
37
}
38
+
39
+ // Need new enough node for WASM as of Kotlin 1.9.20
40
+ rootProject.extensions.findByType<NodeJsRootExtension >()?.apply {
41
+ nodeVersion = " 21.0.0-v8-canary202309143a48826a08"
42
+ nodeDownloadBaseUrl = " https://nodejs.org/download/v8-canary"
43
+ }
44
+ tasks.withType<KotlinNpmInstallTask >().configureEach {
45
+ args.add(" --ignore-engines" )
46
+ }
You can’t perform that action at this time.
0 commit comments