Hello to everyone. I have a tricky question. I hav...
# kotlin-native
m
Hello to everyone. I have a tricky question. I have a multiplatform library project and I intend to consume it in non-kotlin projects (IE: regular java, macOs, javascript). How do I publish the artifacts outside of Maven? I know I can just open the jar files and get the binaries, but I want to see if there's a more structured solution, like publishing the javascript module to npm, or in a ready to be deployed to npm format, for example.
k
they added cocoapods support for iOS. perhaps npm is coming.
d
There's npm support. Not sure if it also includes publishing.
kotlin-frontend-plugin
it's called.
m
What I want to do is the opposite @Dominaezzz, I want to produce a javascript file and import into a typescript, non kotlin project
d
Kotlin produces js (not sure about typescript, although there's also a plugin for that) files which you can consume.
m
I hate to keep bothering you, but how? Should I just open the jar file and add an export to it manually?
Ideally I want to just import the JS file into the typescript project like any JS dependency
d
It's not in a jar. It's simply a js file.
One sec.
It's in
build/classes/kotlin/js/.....
.