From da019555079d4117a69a36740eef18ffb826c07e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 19 Aug 2020 12:14:28 +0600 Subject: [PATCH] pass old way for building of js part --- TelegramBotAPI-all/build.gradle | 5 +---- TelegramBotAPI-extensions-api/build.gradle | 5 +---- TelegramBotAPI-extensions-utils/build.gradle | 5 +---- TelegramBotAPI/build.gradle | 5 +---- .../insanusmokrassar/TelegramBotAPI/types/BotCommand.kt | 4 +--- docs/build.gradle | 5 +---- 6 files changed, 6 insertions(+), 23 deletions(-) diff --git a/TelegramBotAPI-all/build.gradle b/TelegramBotAPI-all/build.gradle index 4a64582027..796613ef95 100644 --- a/TelegramBotAPI-all/build.gradle +++ b/TelegramBotAPI-all/build.gradle @@ -31,10 +31,7 @@ repositories { kotlin { jvm() - js(BOTH) { - browser { dceTask { keep "$library_group" } } - nodejs() - } + js() sourceSets { commonMain { diff --git a/TelegramBotAPI-extensions-api/build.gradle b/TelegramBotAPI-extensions-api/build.gradle index 984e9b199d..233cb17f00 100644 --- a/TelegramBotAPI-extensions-api/build.gradle +++ b/TelegramBotAPI-extensions-api/build.gradle @@ -31,10 +31,7 @@ repositories { kotlin { jvm() - js(BOTH) { - browser { dceTask { keep "$library_group" } } - nodejs() - } + js() sourceSets { commonMain { diff --git a/TelegramBotAPI-extensions-utils/build.gradle b/TelegramBotAPI-extensions-utils/build.gradle index 984e9b199d..233cb17f00 100644 --- a/TelegramBotAPI-extensions-utils/build.gradle +++ b/TelegramBotAPI-extensions-utils/build.gradle @@ -31,10 +31,7 @@ repositories { kotlin { jvm() - js(BOTH) { - browser { dceTask { keep "$library_group" } } - nodejs() - } + js() sourceSets { commonMain { diff --git a/TelegramBotAPI/build.gradle b/TelegramBotAPI/build.gradle index d7a9cbdbb8..6792871934 100644 --- a/TelegramBotAPI/build.gradle +++ b/TelegramBotAPI/build.gradle @@ -31,10 +31,7 @@ repositories { kotlin { jvm() - js(BOTH) { - browser { dceTask { keep "$library_group" } } - nodejs() - } + js() sourceSets { commonMain { diff --git a/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/BotCommand.kt b/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/BotCommand.kt index fb95cc9853..3ac9d3470d 100644 --- a/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/BotCommand.kt +++ b/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/BotCommand.kt @@ -4,9 +4,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.utils.throwRangeError import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -val BotCommandNameRegex by lazy { - Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$") -} +val BotCommandNameRegex = Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$") @Serializable data class BotCommand( diff --git a/docs/build.gradle b/docs/build.gradle index ad8ef8742d..9c8b7477de 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -26,10 +26,7 @@ repositories { kotlin { jvm() - js(BOTH) { - browser { dceTask { keep "$library_group" } } - nodejs() - } + js() sourceSets { commonMain {