Another Kotlin/JS question, regarding how best to ...
# javascript
y
Another Kotlin/JS question, regarding how best to orchestrate gradle to build the
productionLibrary
for publishing? I have attempted to do the following:
Copy code
tasks.getByName("publishJsNpmPublicationToNpmjs") {
            dependsOn(tasks.getByName("jsBrowserProductionLibraryDistribution"))
            doLast {
val jsDir = buildDir.resolve("productionLibrary")
...
}
But
jsBrowserProductionLibraryDistribution
does not create
productionLibrary
. Any clues to what does?
b
Have you tried #npm-publish? Should "just work" in any kotlin js/mpp project with binaries.library()
P.S. Distribution task just collects the outputs from previous tasks like compileSync, publicPackageJson and processResources
y
I have tried npm-publish and got the following which I couldn't really figure out
b
Weird... How are you applying kgp?
y
We didn't upgrade the npm-publish to the latest, we just stuck to the version that worked.
👍 1