Submit PR via https://docs.npmjs.com/cli/link
- You want B to depend on A but
- A is not on npm (or it is - but you don't feel like publishing after each fix)
- While standing in A
npm link
makes a global package of A. Verify bynpm ls -g --depth=0
. - A can then be used by B by doing
npm link A
while inside B. Verify bynpm ls --depth=0
.