title: Angular 5 - How to generate definition files
body: <p>I have been trying several ways but I am not able to understand how to generate definition files for my project. I have two angular-cli generated applications A and B, I want A to consume B as a package (with npm link). As far as I understand I need to create an index.ts file in project B with all the modules I want to export and run 'ng build' command. I have seen that only creates the bundles but not the definition files, how can I generate definition files? Is this the correct approach?.</p>
  
  <p>I have tried some other options like 'rollup' and 'ngmakelib' but it seems to be pretty hard to do that simple task. Do we have an easy way to generate Angular 5 projects as libraries and consume that libraries from another projects?</p>