From cc456c05292ed74bba507f4076e76d0a824dd00f Mon Sep 17 00:00:00 2001 From: Rayyan Ul Haq <31252332+Rayyan98@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:17:41 +0500 Subject: [PATCH] fix(dev-deps-workspaces): adding check for if top is workspace when excluding packages using omit flags --- workspaces/arborist/lib/arborist/reify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/arborist/lib/arborist/reify.js b/workspaces/arborist/lib/arborist/reify.js index 0057d38f11756..fc079ec5abeec 100644 --- a/workspaces/arborist/lib/arborist/reify.js +++ b/workspaces/arborist/lib/arborist/reify.js @@ -484,7 +484,7 @@ module.exports = cls => class Reifier extends cls { process.emit('time', 'reify:trashOmits') const filter = node => - node.top.isProjectRoot && + (node.top.isProjectRoot || node.top.isWorkspace) && ( node.peer && this[_omitPeer] || node.dev && this[_omitDev] ||