So the question is pretty basic but I can\'t find it.
I created a new app through ng new my-project, followed by a ng g library my-library.
ng new my-project
ng g library my-library
ng-build already includes your libraries in the main.js bundle. No need to separately build each library.