Does someone have a working example of how to rele...
# javascript
g
Does someone have a working example of how to release a Multiplatform JS target as a pure NPM module?
t
Multiplatform JS target
Is it important? Or you need common example for
browser
target?
g
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
If you have an example for browser target I’d love to take a look at it anyway 🙂
i
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
package.json
workspaces that point on your Kotlin/JS modules You can check https://github.com/diesieben07/use-kotlin-from-js