Skip to content

Fix dev dependency exclusion bug when too many node modules are used #3874

Closed

Description

@pmuens

This is a Bug Report

Description

Right now we do a glob exclude of the whole node_modules directory and include only prod dependencies by using npm ls to identify them and a glob to re-include them.

However there's a bug with the maximum number of characters the buffer can hold.

Furthermore we should switch the behavior. We should list the dev dependencies and exclude them (while still including the whole node_modules directory) to ensure that the whole node_modules directory is still in included. Even if the command fails.


Quick fix / other addition

Add a config parameter which allows people to opt out of this feature.


Related #3827

Activity

  1. added this to the 1.18 milestone on Jun 29, 2017
  2. pmuens commented on Jun 29, 2017

    @pmuens
    ContributorAuthor

    Quick update. "opt-out" support was added in #3877.

  3. arabold commented on Jun 29, 2017

    @arabold

    Yes, that's exactly the issue we were running into. The size of the buffer seems to be 8k and thus a lot of our dependencies are missing. The opt-out support works around that.

  4. pmuens commented on Jun 30, 2017

    @pmuens
    ContributorAuthor

    Just cross-referencing @arabold comment from the PR here: #3737 (comment).

    Thanks for looking into it 👍

  5. pmuens commented on Jul 4, 2017

    @pmuens
    ContributorAuthor

    Adding a note here that we've just started a PR which will include a fix for this (will be updated frequently).

    It can be found here: #3889.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions