title: invoke a child process via fork() when using ts-node
body: <p>I have a typescript project and rather than using <code>tsc</code> first, I'm just running via <code>ts-node</code> directly.</p>
  
  <p>In my code I need to create a child process with <code>fork()</code>.</p>
  
  <p>If I run code like <code>child_process.fork('ChildProcess.ts')</code> and <code>ChildProcess.ts</code> contains some typescript only constructs (eg: <code>import {}</code>, <code>export</code>, ...), then the interpreter being <code>node</code>, not <code>ts-node</code>, will fail.</p>
  
  <p>It may be recommended to use something like <code>child_process.exec('node ./node_modules/.bin/ts-node ChildProcess.ts)</code>, but I really want/need the IPC communication channel that gets set up between the parent and child processes when <code>fork()</code> specifically is used.</p>
  
  <p>Any ideas on how to achieve this?</p>
  
  <p>Thanks!</p>