title: Problem with npm resolution resolution from package requiring third dependency
body: <p>I have a problem with a requirement, hope you can help me.</p>
  
  <p>I have 1 package named <code>@unicoderns/orm</code>, that requires mysql
  <a href="https://github.com/unicoderns/ORM" rel="nofollow noreferrer">https://github.com/unicoderns/ORM</a></p>
  
  <p>Now Im trying to code another OpenSource package named <code>@unicoderns/cerberus</code>, cerberus has the orm as dependency, but when I try to build cerberus I get this error:</p>
  
  <blockquote>
    <p>node_modules/@unicoderns/orm/connection.d.ts:4:24 - error TS7016: Could not find a declaration file for module 'mysql'. '/home/chriss/Sites/cerberus/node_modules/mysql/index.js' implicitly has an 'any' type.
      Try <code>npm install @types/mysql</code> if it exists or add a new declaration (.d.ts) file containing <code>declare module 'mysql';</code></p>
    
    <p>4 import * as mysql from "mysql";</p>
  </blockquote>
  
  <p>Is obviously trying to find the types of mysql in Ceberus, but they dont exists, why?</p>
  
  <p>Edit 1: typo</p>