This blocks bug 1165496. See for https://github.com/npm/npm/issues/8422 one suggestion for an upstream change to npm that would fix this.
Created attachment 8615533 [details] [review] Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/30427 r=self. For the meantime, we can hack around this by using peerDependencies and explicitly depending on all of our local modules in our top-level package.json.
landed on master https://github.com/mozilla-b2g/gaia/commit/65369b217faac7d70c1a29100c4208c6d1db16e3