title: Node throwing Unexpected strict mode reserved word "yield"
body: <p>Been struggling with this for a while and honestly its eating me alive, this is a typescript code being mapped to javascript code. Source is</p>
  
  <pre><code>const connection: Connection = await createConnection();
  </code></pre>
  
  <p>From <a href="http://typeorm.io/#/using-ormconfig/creating-a-new-connection-from-the-configuration-file" rel="nofollow noreferrer">TypeORM</a> which converts to</p>
  
  <pre><code>const connection = yield typeorm_1.createConnection();
  </code></pre>
  
  <p>Which this then throws</p>
  
  <pre><code>/path/to/api/build/routes/admin.js:22
          let admins = yield con.manager.find(Admin_1.Admin);
                       ^^^^^
  
  SyntaxError: Unexpected strict mode reserved word
      at createScript (vm.js:80:10)
      at Object.runInThisContext (vm.js:152:10)
      at Module._compile (module.js:624:28)
      at Object.Module._extensions..js (module.js:671:10)
      at Module.load (module.js:573:32)
      at tryModuleLoad (module.js:513:12)
      at Function.Module._load (module.js:505:3)
      at Module.require (module.js:604:17)
      at require (internal/module.js:11:18)
      at Object.&lt;anonymous&gt; (/home/lulliezy/Documents/Projects/blog/api/build/app.js:10:13)
  </code></pre>
  
  <p>I have searched everywhere but i havent found a solution yet, and its driving me nuts, any solution or fixes or work arounds to this? I will highly appreciate, thanks in advance</p>