title: How do I dynamically link a local created npm package to another project?
body: <p>I have a project that exports a package to be used by other projects (some infra code).
  I've published it in a local repo, and then installed it on my main project.
  I need to keep working on that infra project, and to have it updated in the larger project. I have no problem running scripts to do that - but I don't want to increase its package version and to keep publishing it on any change.</p>
  <p>I know about <code>npm link</code> and I've been trying to use it, but it seems that some caching in WebStorm causes it to not update in the main project. I actually need sometimes to invalidate caches and restart the IDE after changes to the infra package - and that's a large time consumer.</p>
  <p>Is there a way to tell WebStom &quot;for this npm package I want you to use this path instead of the actual npm package&quot;? Or to use the &quot;Attach project&quot; feature to do that when both are open?</p>
  <p>Edit: After working like that a bit, I've discovered that the need to invalidate cache is related only to TS related changes - meaning when I add classes or change signatures. I can write the correct code and it works - but TS shows errors and no autocomplete until I invalidate the caches. And restarting TS service doesn't help.</p>