enso-ui / ui

Laravel Enso UI
MIT License
9 stars 10 forks source link

Upgrading indirect package dependencies with Yarn (question) #80

Closed robbykrlos closed 3 years ago

robbykrlos commented 3 years ago

This is a question.

Hi,

Stupid question maybe but I'm interested how you guys keep things updated on UI.

So I'm dealing with this yarn issue, where yarn will not update your indirect package dependencies. Let's take enso-ui/ui, which is inside my package.json (^4.0). enso-ui/ui has inside in it's package.json a dependecy with enso-ui/toastr (^2.0).

I want to update update only enso-ui/toastr from 2.1.1 (what is in my yarn.lock file) to recent 2.1.2.

I do not want to update enso-ui/ui with full dependencies, just enso-ui/toastr. I also do not consider adequate to yarn add enso-ui/toastr to my local package.json I also do not consider adequate to manually change the yarn.lock file.

I found this workaround:

https://github.com/yarnpkg/yarn/issues/4986#issuecomment-395036563 - delete yarn.lock entry for enso-ui/toastr and run yarn again, forcing latest version.

Do you have this issue, or you always go for enso-ui/ui upgrade with full dependencies?

aocneanu commented 3 years ago

we should delete yarn.lock from all packages asap:). We only need one in the local project.

robbykrlos commented 3 years ago

I don't get it:) there is no yarn.lock in any of your enso-ui sub-packages. I only have the one in my local project.

aocneanu commented 3 years ago

I believe I might have read your post in too much of a hurry. We always try to keep enso-ui/ui up to date with all the deps.

robbykrlos commented 3 years ago

I believe I might have read your post in too much of a hurry. We always try to keep enso-ui/ui up to date with all the deps.

No worries, thanks for the quick reply.

Ideally that's normal, but sometimes changes are not inter-linked so sub-package upgrade makes sense too.

Have a good day.