npm/git

[BUG] yarn 2 pnp issues

regevbr opened this issue · 0 comments

The library requires the lru-cache and semver packages but they are not declared as dependencies.
This is done at

const LRU = require('lru-cache')
and
const semver = require('semver')

Because yarn 2 uses PlugNPlay, it is not allowed to use non declared dependencies, causing my CI tools to fail

Temp fix is to add to .yarnrc.yml

packageExtensions:
  "@npmcli/git@*":
    dependencies:
      lru-cache: "*"
      semver: "*"