Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub module its not upgraded only the requested module in the command #3082

Closed
OmerHerera opened this issue Apr 9, 2017 · 1 comment
Closed

Comments

@OmerHerera
Copy link

Looks like a bug or maybe I'm misunderstanding something

What is the current behavior?

  • When running yarn upgrade in project that have already yarn.lock, will upgrade only the module in the command, and not upgrading the sub-modules,

If the current behavior is a bug, please provide the steps to reproduce.

Lets say I have module lets call it module-0and inits package.json has

"dependencies": {
    "@organization/module-a": "^1.0.0"
  }

In the package.json for the module-a has

"dependencies": {
    "@organization/module-b": "^1.0.0"
  }

So the dependencie looks like:
module-0->module-a->module-b

Now lets says that module-a and module-b have new versions

Now I run yarn upgrade @organization/module-a

What is the expected behavior?
I expect module-a and module-b will be upgrade module-a because I asked and module-b because its the sub-module

Please mention your node.js, yarn and operating system version.
OsX El Capitan 10.11.6
node v6.10.0
yarn 0.22.0

@bestander
Copy link
Member

Yarn may try to optimize the dependency list and sometimes will not force updating subdepdendencies.
These RFC could be interesting yarnpkg/rfcs#71 yarnpkg/rfcs#54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants