title: TSC cannot find name of Global Object
body: <p>In my typescript code I am trying to access the <code>__dirname</code> global object: <a href="https://nodejs.org/docs/latest/api/globals.html" rel="noreferrer">https://nodejs.org/docs/latest/api/globals.html</a></p>
  
  <p>I am seeing a compile error: <code>TS2304:Cannot find name '__dirname'.</code>
  I can run the code without any issue. How can I get <code>tsc</code> to compile without error?</p>