Ola Adolfsson
12/23/2020, 6:50 AM-jsLegacy
Naming Convention is incompatible with NPM
Libraries such as kotlinx.serialization
are exporting artifacts with a -jsLegacy
suffix when using the legacy compiler with Kotlin 1.4. NPM however, doesn’t allow capital letters in package names.”Patrick Doering
12/23/2020, 8:42 AMOla Adolfsson
12/23/2020, 6:07 PMArtyom Degtyarev [JB]
12/23/2020, 8:38 PMIlya Goncharov [JB]
12/24/2020, 7:34 AMmoduleName
For example:
kotlin {
js {
moduleName = project.name
}
}
But unfortunately it is not so useful for external dependenciesOla Adolfsson
12/24/2020, 10:28 AMIlya Goncharov [JB]
12/24/2020, 10:33 AMdecamelize
I have already made commit
Now it is testingOla Adolfsson
12/24/2020, 10:36 AMIlya Goncharov [JB]
12/24/2020, 10:41 AMSo we can perhaps get it in 1.4.30?I am afraid, that not, release cycle of 1.4.30 already is in progress (1.4.30-M1 already released 🙂 ) Another one problem, that I want to investigate effect of this change in term of compatibility (in fact it can be problem, because file name is important in js ecosystem)
I can test it tomorrow if you provide the artefact or instructions how to compile itIf I understand you correctly, it is important for you to get correct names of kotlin libraries (kotlinx.serialization e.g.), and it can will be ok only after republishing of such libraries (and it will be in their corresponding release cycles) If you only need to change your own names, you can use
moduleName
in your projectsOla Adolfsson
12/24/2020, 10:54 AMIf I understand you correctly, it is important for you to get correct names of kotlin libraries (kotlinx.serialization e.g.), and it can will be ok only after republishing of such libraries (and it will be in their corresponding release cycles)yeah thats correct. 🙂 .
If you only need to change your own names, you can useWe’re aware of that setting 🙂 .in your projectsmoduleName
bughunter
12/24/2020, 7:20 PMOla Adolfsson
12/27/2020, 9:24 AMPatrick Doering
03/23/2021, 1:14 PMIlya Goncharov [JB]
03/23/2021, 1:36 PMPatrick Doering
03/23/2021, 1:38 PMIlya Goncharov [JB]
03/23/2021, 1:47 PM