From efaeb5edb7fa5d2c473552407fdbdf74ba959da1 Mon Sep 17 00:00:00 2001 From: Tofandel Date: Mon, 6 Jul 2026 15:07:20 +0200 Subject: [PATCH] Revert https://github.com/npm/cli/commit/091742184d3be69694ce93bbbbc3a5077202f019 --- workspaces/arborist/lib/node.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/workspaces/arborist/lib/node.js b/workspaces/arborist/lib/node.js index 13370a50ab475..6ed5c52782061 100644 --- a/workspaces/arborist/lib/node.js +++ b/workspaces/arborist/lib/node.js @@ -1320,6 +1320,11 @@ class Node { this[_changePath](newPath) } + // Apply workspace overrides to packages + if (parent.overrides) { + this.overrides = parent.overrides.getNodeRule(this) + } + // clobbers anything at that path, resets all appropriate references this.root = parent.root }