How yarn.lock knows what version to resolve?

90 Views Asked by At

I have a project with several microservices, each of them have a package.json.

In all of them I have a sequelize package that I want to be updated to the latest minor/patch version, so I used the caret sign in my package.json files:

"sequelize": "^6.21.4"

Each of those package.json have a different version for the sequelize package, when I run yarn install, my yarn.lock will look like this:

sequelize@^6.21.2, sequelize@^6.21.4, sequelize@^6.25.2:
  version "6.31.1"

But searching for the latest minor/patch version of sequelize in npm, it gives me 6.35.2.

What is the criteria of yarn for choosing the resolve version?

Why yarn.lock not giving me the latest minor/patch version as a resolve version?

0

There are 0 best solutions below