fix(arborist): don't checkEngine/checkPlatform for extraneous deps#8310
fix(arborist): don't checkEngine/checkPlatform for extraneous deps#8310YodaDaCoda wants to merge 2 commits intonpm:latestfrom
Conversation
|
@YodaDaCoda Are you able to add a test that would fail before the fix? |
|
I have made an attempt... but it doesn't work how I expect it to. The test passes whether or not the fix is in place (i.e. it doesn't throw). I need help from someone more familiar with the codebase to figure out how to properly trigger the condition. |
|
Strict mode throws. You can pass in the values and set strict to |
|
I worded that very poorly. It probably would throw, if the problematic dep wasn't being pruned. Not clear to me why it's pruned in the test, but not in Real Life. The package.json / package-lock.json probably need to be tweaked somehow. It's the That example you've shared does help me clean up the test somewhat though, thanks. |
Fixes #7622
The linked issue describes the problem in detail, I won't replicate that here.