i have a nodejs project with a few dependencies on my own modules. as per npm's current best practices, those dependencies are represented using the npm link
/npm link $package-name
commands, so the project now has some symbolic links in its node_modules
. locally that works.
however when i push that project to github, the links are preserved as links, meaning that other people that clone it will (very likely) see broken links. another point is that i push the node_modules
directory to github at all—that's ok in so far cloning from github now gives you a complete instance of the project with all dependencies resolved, but on the other hand i suddenly have a lot of 3rd party stuff in my repo.
what is the best practice to deal with this kind of situation?
edit one thing i just realized is that checking in dependencies as installed code is wrong anyhow—there might be some binaries involved that need to get installed in a platform-specific way. so you never check in your dependencies?