I'm the one who made isaacs write npm link back in the day. I was a fan of
linking (manually and w/ npm) but after a few years of living with node's
module system I stopped using it.
All my repos are checked out in to ~/Documents/git, if I'm developing two
simultaneously I just do require('../module_name') to the other git repo. It
works just as well and it's really easy to find out what I'm linking to, and
likely need to publish again, and locate requires that need to change before
publishing the local module.
It's one of those things that is so easy I'm surprised I didn't do it sooner
but now that I do I don't see the point in doing sym linking.
-Mikeal
On Dec 8, 2013, at 12:39AM, Tim Caswell <[email protected]> wrote:
> Though to be fair, I often prefer manually creating the symlink directly as
> you did since I use nvm and my global node_modules changes when testing
> different versions of node.
>
> On Dec 7, 2013 7:55 PM, "Dave Horton" <[email protected]> wrote:
> Ah, yes thanks!
>
> On Saturday, December 7, 2013 6:51:07 PM UTC, Brian Di Palma wrote:
> npm link?
>
> On Sat, Dec 7, 2013 at 6:48 PM, Dave Horton <[email protected]> wrote:
> > I'm developing two related modules concurrently -- module A depends on
> > module B. Neither is anywhere near a state where I want to put them into
> > npm yet, so I can't simply have module A have a dependency on B in its
> > package.json and leave it at that. I'm thinking what I will do is have the
> > projects in separate folders (separate git repos) on my laptop, and then
> > just make a symbolic link under A/node_modules to where B is, so I can
> > modify B real-time and then test it as I run tests/examples on A.
> >
> > But I'm thinking this must be common, and whether smarter people than me
> > have figured out a better approach for this...
> >
> > --
> > --
> > Job Board: http://jobs.nodejs.org/
> > Posting guidelines:
> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> > You received this message because you are subscribed to the Google
> > Groups "nodejs" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
> >
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "nodejs" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.