title: How to develop node library referenced via local directory from another project?
body: <p>Per <a href="https://stackoverflow.com/a/14387210/62">this answer</a>, when you reference a local dependency in <code>package.json</code> the local package will be copied to <code>node_modules</code>. This is not ideal when I'm developing a package and just referencing it from another project as I want to verify the library works correctly within another project. It seems every time I make a change to the library, I have to go back to my consuming project, delete the <code>node_modules/my-library</code> folder and rerun <code>npm install</code> each time for it to copy the library back. If I don't delete the folder first it doesn't seem to copy the latest version over.</p>
  
  <p>If I develop directly inside <code>node_modules/my-library</code> it's not ideal because that folder isn't version controller, unlike the local folder referenced in <code>package.json</code>.</p>
  
  <p>Another option would be to create an example project within the <code>my-library</code> repo, but I'd prefer to go that route as a last resort.</p>