Using the Angular Workspace or the Nrwl/Nx Workspace, you can create multiple library projects in your workspace. We know that the applications can share the libraries. But we can also share libraries with other libraries.
You can also reference and use a library from another library. Library references will need to use
scope naming styles (i.e., @angular/core). You can update the paths in the workspace tsconfig to map to the correct libraries. Please note, that the default behavior of the workspace is to reference the libraries (using a file path) and combining the output for the build of the application. To use the libraries from other libraries, the environment has to emulate a published package.
Please note that you will have to pay attention as to not create a circular dependencies in your library-to-library usage.