Skip to main content
Code and think

Yarn Resolutions in Dependency

This time it is not about new year's resolutions. Yarn resolutions are useful when you want to 'force' Yarn to resolve a particular version of a dependency. The original reference can be strict or a range. Resolutions work in both cases. In other words, with resolutions, we can override the version referenced.

 "dependencies": {
   "left-pad": "1.0.0"
 },
 "resolutions": {
   "left-pad": "1.1.1"
 }

Reference