I was curious if this is intentional -- Kotlin JS ...
# javascript
n
I was curious if this is intentional -- Kotlin JS has a different default for maven publishing than JVM or MPP. In JVM and MPP publications are created automatically if you apply the
maven-publish
plugin, however for JS only projects this isn't the case. It's easy enough to add -
Copy code
val kotlinSourcesJar by tasks.named("kotlinSourcesJar")    
    publishing {
        publications {
            create<MavenPublication>("default") {
                from(components["kotlin"])
                artifact(kotlinSourcesJar)
            }
        }
    }
However, this isn't really documented and feels inconsistent. This is with 1.4-M1 EAP.
👍 1
g
I think it worth to report this issue on kotl.in/issue
d
maybe they should go to npm 😜