Skip to content

Commit 09ad624

Browse files
committed
fix(arborist): don't checkEngine/checkPlatform for extraneous deps
Fixes #7622
1 parent 9cb9d50 commit 09ad624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspaces/arborist/lib/arborist/build-ideal-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ module.exports = cls => class IdealTreeBuilder extends cls {
194194
async #checkEngineAndPlatform () {
195195
const { engineStrict, npmVersion, nodeVersion } = this.options
196196
for (const node of this.idealTree.inventory.values()) {
197-
if (!node.optional) {
197+
if (!node.optional && !node.extraneous) {
198198
try {
199199
// if devEngines is present in the root node we ignore the engines check
200200
if (!(node.isRoot && node.package.devEngines)) {

0 commit comments

Comments
 (0)