See more
The first step is called component pattern, and it’s the basic concept behind the architecture of Angular2+.
In your compiled library directory, run npm pack. This will create your-awesome-library.tar.gz
npm pack