Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check and cleanup node_modules before install #207

Merged
merged 7 commits into from
Aug 12, 2016
Merged

Check and cleanup node_modules before install #207

merged 7 commits into from
Aug 12, 2016

Conversation

bestander
Copy link
Member

@bestander bestander commented Aug 10, 2016

Fixes #84, #161

I thought of doing some partial cleanup in package-linker.js that would analyze what is already installed and what needs to be installed but it ended up a bit too complex for me.

Instead I just run check command before installation.
This also optimizes scenario when 2 or more install commands are started at the same time because second and third installation will bail fast after the successful check.

The down side is an extra check running every installation.

This fixes #84 and also optimises scenarios when multiple `kpm install` instances are running
@bestander bestander changed the title Check and cleanup node_modules before install [don't merge] Check and cleanup node_modules before install Aug 10, 2016
@ghost ghost added the CLA Signed label Aug 10, 2016
@ghost ghost added the CLA Signed label Aug 11, 2016
@bestander bestander changed the title [don't merge] Check and cleanup node_modules before install Check and cleanup node_modules before install Aug 11, 2016
@kentaromiura kentaromiura merged commit 9fdafda into yarnpkg:master Aug 12, 2016
@sebmck sebmck deleted the fix-reinstall-consistency branch August 16, 2016 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants