make event schema js target browser only, and not executable (faster compilation)
This commit is contained in:
parent
ea0a6b939d
commit
8f24bfb797
1 changed files with 6 additions and 4 deletions
|
|
@ -14,7 +14,8 @@ plugins {
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|
||||||
js(IR) {
|
js(IR) {
|
||||||
binaries.executable()
|
// binaries.executable()
|
||||||
|
browser {}
|
||||||
// browser{} causes this error:
|
// browser{} causes this error:
|
||||||
// Cannot load "webpack", it is not registered!
|
// Cannot load "webpack", it is not registered!
|
||||||
// Perhaps you are missing some plugin?
|
// Perhaps you are missing some plugin?
|
||||||
|
|
@ -31,7 +32,7 @@ kotlin {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
nodejs()
|
// nodejs()
|
||||||
}
|
}
|
||||||
jvm {
|
jvm {
|
||||||
val main by compilations.getting {
|
val main by compilations.getting {
|
||||||
|
|
@ -160,7 +161,8 @@ val schemaTsDistributionName : Provider<String> = providers.provider {
|
||||||
"${rootProject.name}-${project.name}"
|
"${rootProject.name}-${project.name}"
|
||||||
}
|
}
|
||||||
|
|
||||||
val generateTypescriptOutputFiles: Provider<FileTree> = generateTypescript.map { it.outputs.files.asFileTree }
|
val generateTypescriptOutputFiles: Provider<FileTree> =
|
||||||
|
generateTypescript.map { it.outputs.files.asFileTree }
|
||||||
|
|
||||||
val schemaTs by distributions.registering {
|
val schemaTs by distributions.registering {
|
||||||
distributionBaseName.set(schemaTsDistributionName)
|
distributionBaseName.set(schemaTsDistributionName)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue