title: how to define submodule in package.json to make 'require('module/submodule')'
body: <p>I have a library of components, that have to be compiled.
  I compile my sources to <code>dist</code> folder with a file <code>index.js</code> (and all other compiled files) which exports all components like this</p>
  
  <pre><code>/*index.js*/
  module.exports = {
  "component1": require('./components/component1/component1'),
  "component2": require('./components/component2/component2')
  }
  </code></pre>
  
  <p>I have this setting in my <code>package.json</code> file
      "main": "./dist",</p>
  
  <p>so, I can require this library like this <code>require('library')</code></p>
  
  <p><strong>Problem:</strong> I also want to export my components one-by-one to make it possible to require them partially like <code>require('library/component1')</code></p>
  
  <p>I could put for instance, <code>component1.js</code> file in <code>./dist</code> folder with further require, but it still makes me write <code>require('library/dist/component1')</code></p>
  
  <p><strong>Quistion:</strong> Is it possible to make it somehow staying files inside of 'dist' folder?</p>