[Gradle, JS] Rename DEFAULT_GENERATE_EXTERNALS
This commit is contained in:
+6
-6
@@ -69,7 +69,7 @@ interface KotlinDependencyHandler {
|
|||||||
): Dependency = npm(
|
): Dependency = npm(
|
||||||
name = name,
|
name = name,
|
||||||
version = version,
|
version = version,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun npm(
|
fun npm(
|
||||||
@@ -84,7 +84,7 @@ interface KotlinDependencyHandler {
|
|||||||
): Dependency = npm(
|
): Dependency = npm(
|
||||||
name = name,
|
name = name,
|
||||||
directory = directory,
|
directory = directory,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun npm(
|
fun npm(
|
||||||
@@ -96,7 +96,7 @@ interface KotlinDependencyHandler {
|
|||||||
directory: File
|
directory: File
|
||||||
): Dependency = npm(
|
): Dependency = npm(
|
||||||
directory = directory,
|
directory = directory,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun devNpm(
|
fun devNpm(
|
||||||
@@ -125,7 +125,7 @@ interface KotlinDependencyHandler {
|
|||||||
): Dependency = optionalNpm(
|
): Dependency = optionalNpm(
|
||||||
name = name,
|
name = name,
|
||||||
version = version,
|
version = version,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun optionalNpm(
|
fun optionalNpm(
|
||||||
@@ -140,7 +140,7 @@ interface KotlinDependencyHandler {
|
|||||||
): Dependency = optionalNpm(
|
): Dependency = optionalNpm(
|
||||||
name = name,
|
name = name,
|
||||||
directory = directory,
|
directory = directory,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun optionalNpm(
|
fun optionalNpm(
|
||||||
@@ -152,7 +152,7 @@ interface KotlinDependencyHandler {
|
|||||||
directory: File
|
directory: File
|
||||||
): Dependency = optionalNpm(
|
): Dependency = optionalNpm(
|
||||||
directory = directory,
|
directory = directory,
|
||||||
generateExternals = DEFAULT_GENERATE_KOTLIN_EXTERNALS
|
generateExternals = DEFAULT_GENERATE_EXTERNALS
|
||||||
)
|
)
|
||||||
|
|
||||||
fun peerNpm(
|
fun peerNpm(
|
||||||
|
|||||||
+1
-1
@@ -5,4 +5,4 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.gradle.plugin
|
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
|
* Generate kotlin/js external declarations from all .d.ts files found in npm modules
|
||||||
*/
|
*/
|
||||||
val jsGenerateExternals: Boolean
|
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
|
* Automaticaly discover external .d.ts declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user