Skip to content

[Feature] Update bootstrap to link external dependencies when present in the root node_modules - #179

Closed
charlieschwabacher wants to merge 1 commit into
lerna:masterfrom
charlieschwabacher:master
Closed

charlieschwabacher wants to merge 1 commit into
lerna:masterfrom
charlieschwabacher:master

Conversation

@charlieschwabacher

@charlieschwabacher charlieschwabacher commented Jun 6, 2016 •

Copy link
Copy Markdown

Resolves #176

Before installing external dependencies for packages, this makes bootstrap check to see if there is a package in the root node_modules directory that will satisfy the dependency. If there is, it is linked in the same way that the local packages are cross linked. If there is not, the package is installed through npm normally.

…ot node modules to avoid loading multiple copies of shared dependencies
@charlieschwabacher

Copy link
Copy Markdown
Author

A test has failed on Travis - it passes locally for me and doesn't look related to these changes. Have you seen that failure before / do you have any guidance?

@charlieschwabacher

Copy link
Copy Markdown
Author

Looks like tests re-ran, thanks 👍

@jamiebuilds

Copy link
Copy Markdown
Contributor

Without real symlinking this will end up breaking a lot of external packages that use other paths.

@charlieschwabacher

Copy link
Copy Markdown
Author

What is the reasoning behind the proxying vs symlinking the local packages? It seems like createLinkedDependency could be updated to make the symlink instead of writing files.. I assume there was some issue w/ that that forced the proxying though?

@jamiebuilds

Copy link
Copy Markdown
Contributor

Yeah, there was an issue with npm creating a bunch of recursive directories. Maybe #263 will fix that

@rygine

rygine commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

@charlieschwabacher does this work with PR #237? how does this affect npm outdated? what are you using to bundle your source?

i ran into a similar issue in webpack that was resolved with the right configuration.

@jamiebuilds jamiebuilds changed the title Update bootstrap to link external dependencies when present in the root node_modules [Feature] Update bootstrap to link external dependencies when present in the root node_modules Nov 16, 2016
@noherczeg

Copy link
Copy Markdown
Contributor

This has been somewhat sort of covered in #507 right @gigabo ?

@evocateur

Copy link
Copy Markdown
Member

I believe this has been addressed by the --hoist option.

@evocateur evocateur closed this Mar 15, 2017
@lock

lock Bot commented Dec 27, 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 27, 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.

5 participants