This seems more like a stackoverflow type question, but...
Set the "main" option in the library's package.json to a bundle or index file that exports the public interfaces to your library. Don't expose every source file.
Set the "main" option in the library's package.json to a bundle or index file that exports the public interfaces to your library. Don't expose every source file.