[Gradle, JS] Rename DEFAULT_GENERATE_EXTERNALS
This commit is contained in:
+6
-6
@@ -69,7 +69,7 @@ interface KotlinDependencyHandler {
|
||||
): Dependency = npm(
|
||||
name = name,
|
||||
version = version,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun npm(
|
||||
@@ -84,7 +84,7 @@ interface KotlinDependencyHandler {
|
||||
): Dependency = npm(
|
||||
name = name,
|
||||
directory = directory,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun npm(
|
||||
@@ -96,7 +96,7 @@ interface KotlinDependencyHandler {
|
||||
directory: File
|
||||
): Dependency = npm(
|
||||
directory = directory,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun devNpm(
|
||||
@@ -125,7 +125,7 @@ interface KotlinDependencyHandler {
|
||||
): Dependency = optionalNpm(
|
||||
name = name,
|
||||
version = version,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun optionalNpm(
|
||||
@@ -140,7 +140,7 @@ interface KotlinDependencyHandler {
|
||||
): Dependency = optionalNpm(
|
||||
name = name,
|
||||
directory = directory,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun optionalNpm(
|
||||
@@ -152,7 +152,7 @@ interface KotlinDependencyHandler {
|
||||
directory: File
|
||||
): Dependency = optionalNpm(
|
||||
directory = directory,
|
||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||
)
|
||||
|
||||
fun peerNpm(
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
package org.jetbrains.kotlin.gradle.plugin
|
||||
|
||||
const val DEFAULT_GENERATE_KOTLIN_EXTERNALS = false
|
||||
const val DEFAULT_GENERATE_EXTERNALS = false
|
||||
+1
-1
@@ -192,7 +192,7 @@ internal class PropertiesProvider private constructor(private val project: Proje
|
||||
* Generate kotlin/js external declarations from all .d.ts files found in npm modules
|
||||
*/
|
||||
val jsGenerateExternals: Boolean
|
||||
get() = booleanProperty("kotlin.js.generate.externals") ?: DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
||||
get() = booleanProperty("kotlin.js.generate.externals") ?: DEFAULT_GENERATE_EXTERNALS
|
||||
|
||||
/**
|
||||
* Automaticaly discover external .d.ts declarations
|
||||
|
||||
Reference in New Issue
Block a user