Closed kroofy closed 2 years ago
The existance, or lack thereof, of a .yarnrc.yml file isn't enough to detect Yarn V2, the correct way to check is to grep yarn.lock
for __metadata:
Size Change: 0 B
Total Size: 75.5 kB
The existance, or lack thereof, of a .yarnrc.yml file isn't enough to detect Yarn V2, the correct way to check is to grep
yarn.lock
for__metadata:
Sorry for taking a while. Thanks for you reply. I did update the code, hope it better conforms to how Yarn v2 works.
We fixed the --frozen-lockfile
alias in https://github.com/yarnpkg/berry/pull/2488 so this is no longer necessary
Even though it says in the docs that:
I couldn't get it to work in Yarn 2.2.2, hence this change.
.yarnrc.yml
is exclusive to Yarn 2 so it should be a safe assumption, see: https://yarnpkg.com/configuration/yarnrc