[Gradle, JS] Make default generate kotlin externals as false
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.gradle.plugin
|
package org.jetbrains.kotlin.gradle.plugin
|
||||||
|
|
||||||
const val DEFAULT_GENERATE_KOTLIN_EXTERNALS = true
|
const val DEFAULT_GENERATE_KOTLIN_EXTERNALS = false
|
||||||
+2
-2
@@ -191,8 +191,8 @@ internal class PropertiesProvider private constructor(private val project: Proje
|
|||||||
/**
|
/**
|
||||||
* Generate kotlin/js external declarations from all .d.ts files found in npm modules
|
* Generate kotlin/js external declarations from all .d.ts files found in npm modules
|
||||||
*/
|
*/
|
||||||
val jsGenerateExternals: Boolean?
|
val jsGenerateExternals: Boolean
|
||||||
get() = booleanProperty("kotlin.js.experimental.generateKotlinExternals")
|
get() = booleanProperty("kotlin.js.generate.externals") ?: DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Automaticaly discover external .d.ts declarations
|
* Automaticaly discover external .d.ts declarations
|
||||||
|
|||||||
+1
-1
@@ -249,7 +249,7 @@ class DefaultKotlinDependencyHandler(
|
|||||||
scope = NpmDependency.Scope.PEER
|
scope = NpmDependency.Scope.PEER
|
||||||
)
|
)
|
||||||
|
|
||||||
private fun defaultGenerateExternals() =
|
private fun defaultGenerateExternals(): Boolean =
|
||||||
PropertiesProvider(project).jsGenerateExternals
|
PropertiesProvider(project).jsGenerateExternals
|
||||||
|
|
||||||
private fun directoryNpmDependency(
|
private fun directoryNpmDependency(
|
||||||
|
|||||||
Reference in New Issue
Block a user