Merge pull request #103 from joreilly/js_apple_silicon

workaround for node.js version on apple silicon
This commit is contained in:
John O'Reilly 2021-12-18 18:54:16 +00:00 committed by GitHub
commit d35f8e64fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,3 +39,10 @@ allprojects {
maven(url = "https://maven.pkg.jetbrains.space/public/p/ktor/eap")
}
}
// On Apple Silicon we need Node.js 16.0.0
// https://youtrack.jetbrains.com/issue/KT-49109
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin::class) {
rootProject.the(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension::class).nodeVersion = "16.0.0"
}