Skip to content

use npm link for linking packages - #263

Closed
zkochan wants to merge 1 commit into
lerna:masterfrom
zkochan:issue11
Closed

zkochan wants to merge 1 commit into
lerna:masterfrom
zkochan:issue11

Conversation

@zkochan

@zkochan zkochan commented Jul 2, 2016

Copy link
Copy Markdown
Contributor

I know it was done previously by making the symlinks manually. I did it using npm link and it works fine.

close #11

@joscha joscha mentioned this pull request Jul 5, 2016
@rtsao

rtsao commented Jul 13, 2016

Copy link
Copy Markdown
Contributor

This fixes #274, since actual npm link is used, right?

@zkochan

zkochan commented Jul 13, 2016

Copy link
Copy Markdown
Contributor Author

Yes, it uses real npm link and it fixes that issue.

@eranimo

eranimo commented Jul 20, 2016

Copy link
Copy Markdown

This would be great. I'm having trouble with the fact that Lerna doesn't use actual symlinks

@longlho

longlho commented Jul 21, 2016 •

Copy link
Copy Markdown

hmm this would definitely break cases where users don't have permissions to global npm (for ex. shared CI env)

@patrickheeney

Copy link
Copy Markdown

I am all for this, but not this exact implementation. In #11 I discovered that everyone needs a different strategy because of different use cases. npm link has it's drawbacks that won't work for some. The existing behavior also won't work for some. In my testing I think this should be implemented as a strategy or a plugin into lerna. I think that is the only way to satisfy the different requirements.

@doug-wade

Copy link
Copy Markdown
Contributor

In #11 I discovered that everyone needs a different strategy because of different use cases

shouldn't prevent merging this pr. when we fix #11, we can add the strategy flag -- getting any solution in that allows deep linking (i.e. require('my-package/foo);`) is better than getter a perfect solution that allow deep linking.

@patrickheeney

Copy link
Copy Markdown

In #11 I discussed the cons of npm link which this PR uses. I agree that getting in any working deep linking solution is better than getting in a perfect solution. However npm link has some issues, that in my opinion, will prevent it from working and cause more issues then it solves.

@rygine

rygine commented Jul 26, 2016

Copy link
Copy Markdown
Contributor

@patrickheeney @doug-wade I had a similar idea a while ago, but it didn't get any traction.

#215

@gigabo gigabo mentioned this pull request Aug 12, 2016
@gigabo

gigabo commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

Hi @zkochan - Please take a look at #237. Does that look like it would meet your needs?

@zkochan

zkochan commented Aug 12, 2016

Copy link
Copy Markdown
Contributor Author

yeah, it should. I'll close this one

@lock

lock Bot commented Dec 28, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested directory support

8 participants