title: Bundling TypeScript 3 library project definitions in the best possible way
body: <p>I don't know what is the best approach when I want to merge TypeScript definitions of my project into one file. There is a lot of examples but I would like to hear about the best approach.. Could you please send me maybe link to repository on which I can base on? I have in mind library project of course, as simple as possible but with more than 1 .ts file.</p>
  
  <p>I would like to avoid this kind of imports in my code:</p>
  
  <pre><code>import {Foo} from "@myLibs/lib/dist/ITest1";
  import {Bar} from "@myLibs/lib/dist/ITest2";
  </code></pre>
  
  <p>and have:</p>
  
  <pre><code>import {Bar, Foo} from "@myLibs/lib";
  </code></pre>
  
  <p>Maybe the problem is how I'm defining main and types in my library's package.json file:</p>
  
  <pre><code>  "main": "dist/lib.js",
    "types": "dist/lib.d.ts",
  </code></pre>