title: `Cannot find module` for my own TypeScript module
body: <p>I have just published a new TypeScript-based module to the NPM registry, <a href="https://github.com/edgarogh/ooafs" rel="noreferrer">ooafs</a>. However, when I try to install it and import it in another TypeScript project, VSCode gives me the following error on the import statement: <code>Cannot find module 'ooafs'.ts(2307)</code>.</p>
  
  <p>This module's source files are compiled to JavaScript to a <code>dist/</code> folder and definitions (<code>.d.ts</code>) are also generated.</p>
  
  <p>Here's the tree of the published module (the one we download when we <code>npm install</code>):</p>
  
  <pre><code>.
  ├── dist
  │   ├── Entry.d.ts
  │   ├── EntryFilter.d.ts
  │   ├── EntryFilter.js
  │   ├── Entry.js
  │   ├── EntryType.d.ts
  │   ├── EntryType.js
  │   ├── FSTypings.d.ts
  │   ├── FSTypings.js
  │   ├── index.d.ts
  │   └── index.js
  ├── LICENSE
  ├── package.json
  └── README.md
  </code></pre>
  
  <p>The <code>package.json</code> does contain the following entries:</p>
  
  <pre><code>{
      "main": "dist/index.js",
      "types": "dist/index.d.ts",
      ...
  }
  </code></pre>
  
  <p>Because the module works normally on Runkit (pure JS), I assume the only problem I have is related to TypeScript, and it's not the first time TypeScript tells me a module doesn't exist when missing declaration files are the only problem.</p>
  
  <p>Am I missing a step in the compilation process ?
  Are my <code>package.json</code> properties wrong ?</p>
  
  <p>If you need to see more code, the Github link is at the beginning of the question, and the published module structure can be found here: <a href="https://unpkg.com/ooafs@0.1.2/dist/" rel="noreferrer">https://unpkg.com/ooafs@0.1.2/dist/</a>.</p>