'What's the minimum I have to do to propagate changes from a node.js file: dependency?
I have a project structure like this:
main
depends onfile:../lib1
which depends onfile:../common
main
depends onfile:../lib2
which depends onfile:../common
If I modify the common
project, what do I need to do to propagate those changes to all projects that depend on it? From the main
project, I will be running a package.json
bin
file from lib1
or lib2
.
I can never figure out the foolproof way of propagating my changes in this scenario. Sometimes it doesn't seem like I have to make any changes at all. Other times, it seems like I have to manually delete my node_modules directory (or maybe the node_modules/.bin directory; it's been a while), especially when I make a change in the bin
files mentioned in the dependency's package.json
. I'm on Windows 10, which may have something to do with this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|