How to publish TypeScript modules on NPM without "dist" in import? : <p>I'm trying to publish a typescript library on NPM but I can't to have a "good" path after publishing.</p>

<p>I follow several guide on this point but I'm not found a solution.</p>

<p>The problem: So, consider the following structure:</p>

<pre><code>dist
 |- Alls files generated after tsc build
lib
 |- All TS files of library (source)
CHANGELOG.md
LICENSE
package.json
README.md
tsconfig.json
</code></pre>

<p>After publishing, for instance in an Angular application, I shall type:</p>

<pre><code>import {Component} from '&lt;library name&gt;/dist/Component';
</code></pre>

<p>My question: How can I configure project import to have <code>from '&lt;library name&gt;/Component'</code> instead <code>from '&lt;library name&gt;/dist/Component'</code> please?</p>

<p>Thank you</p>
