I'am coding an application composed by multiple component made with TypeScript and Angular 1. These components will be reused in other application, I share them with NPM. I'm following basarat exemple (https://github.com/basarat/ts-npm-module) and this work pretty well ! But I got another use case that I can't solve.
Now I have a component composed by multiple sub-components. My application which reference this component need to access elements (var, class, module, ...) from its sub-component. My component is in dependencies section in my package.json's application. I don't want to reference all sub-module in dependencies section of my application.
What do you suggest ?
Do I need to import all elments in my compomnent "main" and re-export to make them visible ? Do I need to use bundleDependencies in my component to reference sub-component ?
Thanks.