You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix dev dependency exclusion bug when too many node modules are used #3874
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.
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.
Activity
pmuens commentedon Jun 29, 2017
Quick update. "opt-out" support was added in #3877.
arabold commentedon Jun 29, 2017
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.
pmuens commentedon Jun 30, 2017
Just cross-referencing @arabold comment from the PR here: #3737 (comment).
Thanks for looking into it 👍
pmuens commentedon Jul 4, 2017
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.