Npm publish with relative path

233 Views Asked by At

I have developed a library using angular2/webpack which is dependent on some core library(pure typescript/webpack). I have references to this core library using relative path "../../" in my code. This is good for building and getting the latest code from the core library. However I think this may not work during npm publish. I want to know what is the best way to work this out. For time being, whenever I want to publish my library, I just change the references from relative path to the actual npm published version. But this is tedious since I have to revert it back to the relative path after I am done publishing. I would really appreciate any help here.

0

There are 0 best solutions below