plugins { kotlin("multiplatform") version "2.0.20" id("maven-publish") id("signing") } group = "org.thundernetwork.chatrum" version = "1.0-SNAPSHOT" repositories { maven("https://repository.thundernetwork.org/repository/maven-central/") } dependencies { } kotlin { jvm { withSourcesJar() } js (IR) { nodejs {} binaries.library() generateTypeScriptDefinitions() useEsModules() compilations["main"].packageJson { customField("types", "kotlin/${project.name}.d.ts") } } sourceSets { val commonMain by getting { dependencies { } } val jvmMain by getting { dependencies { } } val jsMain by getting { dependencies { } } } js { compilations["main"].packageJson { customField("homepage", "https://source.thundernetwork.org/ThunderNetworkRaD/chatrum") } } }