# Js lib are build with the name of the parentProject instead of just it own name

**URL:** <https://discuss.kotlinlang.org/t/js-lib-are-build-with-the-name-of-the-parentproject-instead-of-just-it-own-name/17250>\
**Category:** JavaScript\
**Created:** [April 21, 2020, 10:28am UTC](https://discuss.kotlinlang.org/t/js-lib-are-build-with-the-name-of-the-parentproject-instead-of-just-it-own-name/17250 "2020-04-21T10:28:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah.buisson](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sarah.buisson](https://discuss.kotlinlang.org/u/sarah.buisson)\
**Post date:** [April 21, 2020, 10:28am UTC](https://discuss.kotlinlang.org/t/js-lib-are-build-with-the-name-of-the-parentproject-instead-of-just-it-own-name/17250/1 "2020-04-21T10:28:31Z")

</div>

So I have a big multi-module multiplatformkotlin project lib I will call “BigProject”

each sub-module bigProject will be compiled into a separate lib

This project have a sub-module I will call “core”, who is the only one able/configured/that I want to be compiled into a js lib. It’s also compiled into a Core-js.jar

My issue is:

- the js buid to npm is done not at the level of the core project, but at the level of BigProject, under the name of “BigProject\_Core” instead of just “Core”  
How do I choose to build-it in just Core ? (and to have it in the build of core, not the build of BigProject? with the package.json)

- in the other multiplatform projecst where I use my lib Core , (dependencies to Core-common.jar who contain the kotlin and Core-js.jar), the js of OtherProject call the require to BigProject\_Core instead of just “Core”. (I don’t know how it does to find-it.)

How do I fix-it?

---

<div class="post-metadata">

**Author:** ![ivan.kubyshkin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ivan.kubyshkin/32/7066_2.png) [@ivan.kubyshkin](https://discuss.kotlinlang.org/u/ivan.kubyshkin)\
**Post date:** [April 22, 2020, 12:19pm UTC](https://discuss.kotlinlang.org/t/js-lib-are-build-with-the-name-of-the-parentproject-instead-of-just-it-own-name/17250/2 "2020-04-22T12:19:47Z")

</div>

It’s a known problem - [https://youtrack.jetbrains.com/issue/KT-34104](https://youtrack.jetbrains.com/issue/KT-34104).
