Yes, ideally you should be able to do that.
As far as I remember, someone even suggested to place different packages to
different branches of the same git repository. I don't know if it worked
lol.
But npm support for git dependencies was always kinda fishy, so there could
be a few bugs around.
On Monday, October 28, 2013 6:39:50 PM UTC+4, Rich Frost wrote:
>
> Hi all,
>
> I'm pretty new to node and npm, but am trying to understand whether it's
> possible to alias dependencies defined in the package.json; at the moment
> it seems the key name isn't used to create the folder name in node_modules.
>
> If I have the following in my package.json:
>
> "dependencies": {
> "dep1-name-change": "git+ssh://[email protected]/dep1.git"
> }
>
> I end up with:
>
> node_modules/
> dep1/
>
> What I'd really like to do is:
>
> "dependencies": {
> "dep1-master": "git+ssh://[email protected]/dep1.git",
> "dep1-tag1": "git+ssh://[email protected]/dep1.git#tag1"
> }
>
> With:
>
> node_modules/
> dep1-master/
> dep1-tag1/
>
>
> Is this possible?
>
> Thanks
>
--
--
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.