title: Why does Typescript compiler not change .ts to .js?
body: <p>In the image below on the left in the folders you can see my <strong>/src</strong> Typescript (blue) compiled into my <strong>/dist</strong> (purple) Javascript using tsc.</p>
  
  <p><a href="https://i.stack.imgur.com/7XNkU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7XNkU.png" alt="enter image description here"></a></p>
  
  <p>You can see in the source file on the left that references a .ts module file that it isn't compiled into referencing a .js module file on the right.  </p>
  
  <p>Why not? How could the Javascript possibly run if tsc doesn't convert references?</p>
  
  <p>Second question: I then tried manually changing the compiled reference from <strong>.ts</strong> to <strong>.js</strong> and running <strong>node dist/server.js</strong> but I get the error <em>cannot find module tools/typescriptImport.js'</em>. Why does node fail to find the module when it is correctly referenced (and you can see on the far right that it is a module)?</p>