ng-packagr is the leading solution for Angular component libraries. Integrated in the Angular CLI.
Build re-usable Angular component libraries with ng-packagr. It compiles from source code to Angular Package Format – leaving your library ready to be published to npm.
Since Angular 6, ng-packagr is integrated in the Angular CLI.