If I have an npm dependency that is nested in a git repo, how would I define that dependency in the package.json file?
Say the git repo is at git://github.com/user/myrepo.git on the dev branch, at the relative path ./mylib from the git repo’s root.
Is this possible?
Update: found this which is very close to what I want. Now, I just need to know how to specify the path within the repo+branch.
I don’t think it’s possible. However, you could specify the repo as a dependency. Then add
mylibtobundledDependenciesinpackage.jsonand put a shim intonode_modules/mylib/index.js:And yes, you don’t need
..or so, nodes magic does that for you.