I am trying to include several dependencies in my library (ex. dashjs, leaflet, ...).
I know how to include it in a standard Angular project. Add dependencies to package.json and add each external library to the "script" tag in my angular.json file.
When creating an Angular library there is no angular.json file. Sadly the Angular documentation doesn't help either. Someone already figured out how to do it and can share details about it?
Your library has its own package.json, where you can specify its dependencies:
Check out this tutorial: https://angular.io/guide/creating-libraries#peer-dependencies