nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.57k stars 169 forks source link

chore: remove `vm2` from dev dependencies #284

Closed aduh95 closed 1 year ago

aduh95 commented 1 year ago

vm2 is a transitive dependency that we do not use, and we patched it to be completely harmless. However, it seems the automation is not able to detect that, and is producing annoying warnings, so let's update it.

Refs: https://github.com/nodejs/corepack/pull/283

aduh95 commented 1 year ago

Hum it seems that 3.9.19 is also affected, so that won't fix the automated report 😒 https://www.npmjs.com/package/vm2 shows that the package is deprecated and won't be fixed, so let's remove it from our dependency tree instead.

aduh95 commented 1 year ago

It seems it's not possible to affect dependencies using patches, @arcanis is that right? I'd have sworn that was possible at some point.

arcanis commented 1 year ago

Metadata are retrieved from the registry, so I think patch won't be able to change them; probably something we should fix in Yarn 🤔

In the meantime we can use a resolutions field to map vm2 to a portal:./path/to/vm2/mock; I'm not in front of my computer to test but I think it should do the trick.