title: How to make typescript transfer .pug file to compiled directory
body: <p>I'm using cloud functions to render an html file to send in an email with pug template engine. </p>
  
  <p>To start, I'm trying to do the following:</p>
  
  <pre><code>import * as functions from 'firebase-functions';
  import * as pug from 'pug';
  
  export const renderHTML = functions.https.onRequest(() =&gt; {
  // Compile the source code
  const compiledFunction = pug.compileFile('email.pug');
  
  // Render a set of data
  return compiledFunction({
    name: 'Timothy'
  });
  // "&lt;p&gt;Timothy's Pug source code!&lt;/p&gt;"
  });
  </code></pre>
  
  <p>However, when running the function, the .pug cannot be found. I suspect this is because it is not carried over in the typescript compilation to js. So, how can I make it go into the lib file without manually putting it there?</p>
  
  <p><a href="https://i.stack.imgur.com/W5ign.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W5ign.png" alt="enter image description here"></a></p>