Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
For publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Dec 31, 2023
1 parent 0b6bccf commit 5f27bf3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.js.compiler=ir
kotlin.js.ir.output.granularity=per-file
#kotlin.js.ir.output.granularity=per-file

org.gradle.jvmargs=-Dfile.encoding=utf-8
6 changes: 3 additions & 3 deletions simbot-component-miyoushe-villa-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
`miyoushe-multiplatform-maven-publish`
kotlin("plugin.serialization")
`miyoushe-dokka-partial-configure`
`simbot-miyoushe-suspend-transform`
}

setup(P)
Expand Down Expand Up @@ -53,13 +54,11 @@ kotlin {
js(IR) {
useEsModules()
nodejs()
generateTypeScriptDefinitions()
//generateTypeScriptDefinitions()
binaries.library()
compilations.all {
// Enables ES6 classes generation
kotlinOptions {
suppressWarnings
freeCompilerArgs = freeCompilerArgs + listOf("-Xsuppress:NON_EXPORTABLE_TYPE")
useEsClasses = true
}
}
Expand Down Expand Up @@ -122,6 +121,7 @@ kotlin {
dependencies {
api(simbotAnnotations)
api(libs.ktor.client.js)
implementation("love.forte.plugin.suspend-transform:suspend-transform-annotation:${suspendTransform.annotationDependencyVersion}")
}
}
jsTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,5 @@ public suspend fun uploadToOssData(
ext: String,
decoder: Json = MiyousheVilla.DefaultJson
): OSSResponse {
return uploadToOssResult(client, token, data, ext).dataIfSuccess
return uploadToOssResult(client, token, data, ext, decoder).dataIfSuccess
}
5 changes: 2 additions & 3 deletions simbot-component-miyoushe-villa-stdlib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ kotlin {
js(IR) {
useEsModules()
nodejs()
generateTypeScriptDefinitions()
//generateTypeScriptDefinitions()
binaries.library()
compilations.all {
// Enables ES6 classes generation
kotlinOptions {
suppressWarnings
freeCompilerArgs = freeCompilerArgs + listOf("-Xsuppress:NON_EXPORTABLE_TYPE")
useEsClasses = true
}
}
Expand Down Expand Up @@ -123,6 +121,7 @@ kotlin {
dependencies {
api(simbotAnnotations)
api(libs.ktor.client.js)
implementation("love.forte.plugin.suspend-transform:suspend-transform-annotation:${suspendTransform.annotationDependencyVersion}")
}
}
jsTest {
Expand Down

0 comments on commit 5f27bf3

Please sign in to comment.