I am using 1.3.50 and I have a multiplatform libra...
# javascript
a
I am using 1.3.50 and I have a multiplatform library that I now wish to package as an NPM module which I want to use in an angular project with typescript. How do I package my library as an NPM module? All the information I could find was for older versions of kotlinjs which do not apply anymore.
d
I tried the exact same thing and it's unfortunately not all that straightforward. You can see the end result here: https://github.com/diesieben07/use-kotlin-from-js The discussion that lead up to it is here: https://kotlinlang.slack.com/archives/C3PQML5NU/p1570825141031200
s
As we discussed in thread linked by @diesieben07 it is possible only with some workarounds: you may create your own
package.json
in root folder that lists all workspaces (npm packages) created by gradle and your js workspaces (npm packages). You may check @diesieben07's example or this: https://github.com/snrostov/kotlin-mpp-npm-demo
a
Thanks for the pointers! Let's hope that I can get this to work!