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

Short-circuit out of install with no packages #569

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

gigabo
Copy link
Contributor

@gigabo gigabo commented Feb 2, 2017

The degenerate case of NpmUtilities.installInDir is an install of no packages. The behavior in this case was previously to run an npm install with no arguments, which installs everything.

This patch short-circuits out of the noop.

The degenerate case of `NpmUtilities.installInDir` is an install of no
packages.  The _behavior_ in this case was previously to run an `npm install`
with no arguments, which installs _everything_.

This patch short-circuits out of the noop.
Copy link
Member

@evocateur evocateur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird that dependencies would ever be undefined or null, but I suppose this works.

@hzoo hzoo merged commit 124df44 into lerna:master Feb 3, 2017
@lock
Copy link

lock bot commented Dec 27, 2018

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.

None yet

3 participants