Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Only list runtime dependencies when doing npm ls --production #11562

Closed
wants to merge 1 commit into from

Conversation

yibn2008
Copy link

fix #11559

@othiym23
Copy link
Contributor

@iarna, can you review this? This fixes more than just #11559, and has come up a few times recently.

return
}

if ((dev && devKeys.indexOf(name) >= 0) || // only --production
Copy link
Contributor

Choose a reason for hiding this comment

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

Am I misreading this or are the comments swapped between this line and the line following?

Copy link
Author

Choose a reason for hiding this comment

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

Oh ... yes, the comments should be swapped, it's a mistake.

@iarna
Copy link
Contributor

iarna commented Feb 16, 2016

Looks solid to me 🐑

@iarna iarna added this to the next milestone Feb 16, 2016
@zkat zkat removed the review label Feb 18, 2016
@zkat zkat changed the title fix #11559 Only list runtime dependencies when doing npm ls --production Feb 18, 2016
iarna pushed a commit that referenced this pull request Feb 19, 2016
@zkat
Copy link
Contributor

zkat commented Feb 19, 2016

This was merged and included in npm@3.7.4. Thanks! :D

@zkat zkat closed this Feb 19, 2016
chrishyle added a commit to chrishyle/find-duplicate-dependencies that referenced this pull request Mar 3, 2017
This is necessary for the `checkDevDependencies` option to work.
See fix in: npm/npm#11562
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants