title: using dist folder instead of root for npm package
body: <p>I created a Node.js package and the files to be referenced by the user of this package reside in a <code>dist</code> folder inside the package.</p>
  
  <p>Now I don't want to use <code>require('my-package/dist/feature')</code> but <code>require('my-package/feature')</code>.</p>
  
  <p>I set <code>main</code> and <code>files</code> to this in <code>package.json</code> but when testing the package with <code>npm link</code> locally, I still have to use <code>require('my-package/dist/feature')</code> otherwise I get <code>Cannot find module</code> errors.</p>
  
  <p><code>package.json</code>:</p>
  
  <pre><code>  "main": "dist",
    "files": ["dist"],
  </code></pre>