title: How can I pass a library to a lower dependency in node?
body: <p>I'm trying to create a library that uses the ORM Bookshelf.js (so basically a wrapper on top of Bookshelf.js if you will). Now Bookshelf.js requires you to run a driver installation to be able to connect to the correct database (such as: <code>npm install mysql</code>) in the root of your project.</p>
  
  <p>My own library also requires this, since Bookshelf.js requires it, but it keeps saying <code>Error: Cannot find module 'mysql'</code> which is normal since the Bookshelf instance does not have the mysql dependency in its node_modules folder.</p>
  
  <p>If I type out the structure it would look like this:</p>
  
  <pre><code>* New Project
  ** mysql
  ** LibThatUsesBookshelf
  **** Bookshelf
  </code></pre>
  
  <p>Now Bookshelf.js probably requires this structure:</p>
  
  <pre><code>* New Project
  ** LibThatUsesBookshelf
  **** mysql
  **** Bookshelf
  </code></pre>
  
  <p>Is there a way that I am able to still get bookshelf working with the first structure shown?</p>
  
  <p>P.S. I know the explanation might be confusing, but it is a hard problem and I got no other way of explaining it.</p>