After upgrading to yarn 3, when I run yarn install
, the resolutions are getting removed from package.json
and added in yarn.lock
file.
Are resolutions not supposed to reside in package.json
when using yarn 3?
After upgrading to yarn 3, when I run yarn install
, the resolutions are getting removed from package.json
and added in yarn.lock
file.
Are resolutions not supposed to reside in package.json
when using yarn 3?
You need to use yarn set resolution
with the newer versions of yarn: https://yarnpkg.com/cli/set/resolution
Warning! To persist the changes, use the -s flag or you'll lose the custom resolution when you regenerate your yarn.lock file.
-s
is not implemented (yet). See github.com/yarnpkg/berry/issues/2202 –
Efficacious © 2022 - 2024 — McMap. All rights reserved.
x/**/y: 1.0.0
– Tory**
isn't/wasn't supported. Following the docs, Yarn is happy if removing the globs - which is arguably better, be it annoying if the dependencies are highly nested. – Phia