title: ts-node can't find my type definition files
body: <p>When I run <code>ts-node node_modules/jasmine/bin/jasmine</code>  I get these errors:</p>
  
  <pre><code>tsc/globals.ts:7:12 - error TS2304: Cannot find name 'SugarcubeState'.
  
  7     State: SugarcubeState;
               ~~~~~~~~~~~~~~
  </code></pre>
  
  <p>Here is that global file:</p>
  
  <pre><code>/* eslint-disable @typescript-eslint/no-explicit-any */
  console.log("global.ts");
  
  // eslint-disable-next-line @typescript-eslint/no-namespace
  declare namespace NodeJS {
    interface Global {
      State: SugarcubeState;
      setup: {};
    }
  }
  
  declare const State: SugarcubeState = {
    variables: {}
  };
  
  declare const setup: any = {
    variables: {}
  };
  
  </code></pre>
  
  <p>Here is my index.d.ts:</p>
  
  <pre><code>type SugarcubeVariables = {
  };
  
  type SugarcubeState = { variables: SugarcubeVariables };
  </code></pre>
  
  <p>These are both in the same directory and Visual Studio code is not complaining about anything. Why can't ts-node seem to find my type definition files? </p>
  
  <p>I googled this and found this website: <a href="https://github.com/TypeStrong/ts-node#help-my-types-are-missing" rel="noreferrer">https://github.com/TypeStrong/ts-node#help-my-types-are-missing</a>   Following its advice, i modified my tsconfig file to have a </p>
  
  <pre><code>"typeRoots": ["tsc"],                       /* List of folders to include type definitions from. */
  </code></pre>
  
  <p>in it, but it had no effect on the error.  I also tried this:</p>
  
  <pre><code>    "types": ["tsc/index.d.ts"],                           /* Type declaration files to be included in compilation. */
  </code></pre>
  
  <p>But again, no difference in the errors I received. How do I get ts-node to recognize my .d.ts files?</p>
  
  <p>PS: If you're wondering why I'm defining things this way, see this answer <a href="https://stackoverflow.com/a/43523944/61624">https://stackoverflow.com/a/43523944/61624</a></p>
  
  <hr>
  
  <p>I reread that link and it appears that I need to have a very specific directory structure. The problem is, it says I need but the module name in this directory structure, and given the way I wrote my index.d.ts, i have no idea what to name this directory.</p>