Reputation: 168
I have 2 NPM packages that I'm developing, one of them is for TypeScript interfaces and the other one is for Typed mongoose schemas.
In some cases I want to update the interfaces locally, then continue developing the schemas according to most updated interfaces so I used `npm link` on the interfaces and inside the schemas lib I used `npm link @interaces-lib` - it works perfect.
Then when I finish working on the schemas I want to use npm link
there too and use BOTH the interfaces lib and the schemas lib in another project which should use both of them, but when I try to link the schemas lib, it links it but not with the latest locally developed interfaces-lib in the node_modules folder but the one that was there before I linked it.
Any idea how to solve it?
Thanks!
Upvotes: 0
Views: 219