Does someone have a working example of how to release a Multiplatform JS target as a pure NPM module?
t
turansky
12/10/2019, 1:47 PM
Multiplatform JS target
Is it important?
Or you need common example for
browser
target?
g
galex
12/10/2019, 2:19 PM
I think it’s important as I have a multiplatform project with a js target and want to publish an NPM module out of this multiplatform project
galex
12/10/2019, 2:19 PM
If you have an example for browser target I’d love to take a look at it anyway 🙂
i
Ilya Goncharov [JB]
12/10/2019, 2:55 PM
Hello! Basically you can compile and bundle your js, pack it with tgz and then publish to npm. After that you can write to your package.json dependency only
But from DM I see, that your use case is a bit different, you want to consume Kotlin/JS module from JavaScript application
Now we use yarn workspaces, and seems that you can use it too
Previously we advised to add to root