This is a conceptual question.
I\'m an absolute beginner on both Angular and npm, so this is surely a basic question, but I have been looking all over and haven\'t found
you can use ng-packagr that Transpile your libraries to Angular Package Format execute npm install ng-packagr --save-dev
ng-packagr
npm install ng-packagr --save-dev
Refer this Building an Angular 4 Component Library with the Angular CLI and ng-packagr.