title: Do I have to place any scripts/modules I create and want to import within the node_modules folder?
body: <p>I am creating a VSCode extension, and following the getting started guide (<a href="https://code.visualstudio.com/api/get-started/your-first-extension" rel="nofollow noreferrer">https://code.visualstudio.com/api/get-started/your-first-extension</a>) have used yeoman scaffold to get started. I created a new file, <em>newModule.js</em> in the same directory and want to import it as a module for use in the main extension.js script. I then do:</p>
  <pre><code>const newModule = require('./newModule.js');  
  </code></pre>
  <p>This throws an error:</p>
  <pre><code>cannot find module 'newModule' require stack: - 
  </code></pre>
  <p>This problem disappears if I copy my file to the <em>node_modules</em> folder created by default. I would like to know what is going on here, and what the best way of handling imports is when working with javascript/Node.js/vs-extensions.</p>
  <p>I also notice that <em>node_modules</em> folder is not pushed to github by default, why?</p>