Multi module js project should stay separate

I’m making a bunch of js lib, each reusing a core project.
I was thinking making a multi-module project, but my issue is,
the build of each lib is made a the root of the parent project, like all my libs were workspace of a common big lib.

How can I have a distinct build for my sub-module project?