title: ES6 modules: How to automatically re-export all types in the current directory from index.js?
body: <p>I have lots of code like this scattered around <code>index.js</code> files throughout my React Native project:</p>
  
  <pre><code>import Restaurant from './Restaurant';
  import Store from './Store';
  import Vineyard from './Vineyard';
  import Wine from './Wine';
  
  export {
      Restaurant,
      Store,
      Vineyard,
      Wine
  };
  </code></pre>
  
  <p>It's very repetitive and tedious to write out. Is there a way I can automatically re-export all of the other files in the current working directory from <code>index.js</code>? (<strong>note</strong> I'm also using <a href="https://flow.org/" rel="nofollow noreferrer">Flow</a> in my project so any solution should preserve the type information it can infer.)</p>
  
  <p>Thanks.</p>