https://kotlinlang.org logo
#javascript
Title
# javascript
a

andylamax

10/28/2023, 7:59 AM
Those publishing js libraries with
binaries.library()
how do you publish your sources (not source maps) as well??? I would like for my consumers to be able to view the stacktrace in kotlin code, but they can't. Has anyone figured how to achieve this with a library built by K/JS?
t

turansky

10/28/2023, 2:28 PM
Do you use
multiplatform
plugin?
a

andylamax

10/28/2023, 2:29 PM
yes, I do
t

turansky

10/28/2023, 2:31 PM
In that case looks like your
MavenPublication
s must be fine by default
a

andylamax

10/28/2023, 3:36 PM
so then how do javascript/typescript (Not kotlin/js consumers) consumers get to see the sources from maven???
in other words, how do the consumers of my javascript library who arent using kotlin but the liblary itself, get to view the kotlin files on their stack traces???
e

Edoardo Luppi

10/30/2023, 11:19 AM
@andylamax in those cases you need to enable and ship source maps with your npm package.
You're talking about platform consumers, so forget about Maven repositories.
a

andylamax

10/30/2023, 12:07 PM
do you have a hint on how I can do that??