title: Dynamically export it into an array all exports from all the files
body: <p>index.ts:</p>
  
  <pre><code>import {a} from './x'
  import {b, c} from './y'
  import {d} from './z'
  
  export default [a, b, c, d]
  </code></pre>
  
  <p>x.ts, y.ts, z.ts:</p>
  
  <pre><code>// x.ts
  export const a = 'a'
  // y.ts
  export const b = 'b'
  export const c = 'c'
  // z.ts
  export const d = 'd'
  </code></pre>
  
  <p>How can I make <code>index.ts</code> to dynamically export it into an array all exports from all the files from its directory?</p>