Bumping @dhis2/ui without duplicates #304
Unanswered
martinkrulltott
asked this question in
Gotchas
Replies: 1 comment
-
|
Also, if you want to diagnose whether this is the problem you're having, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lately when bumping the
@dhis2/uidependency withyarn add @dhis2/ui, theyarn.lockfile will be full of duplicates of each sub-package of ui. Usually these can be removed withnpx yarn-deduplicate yarn.lock, but running it just once doesn't do the trick any more. As seen here, dhis2/data-visualizer-app@c2bb793#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2deR3071 , only the"@dhis2/ui@^6.10.5", "@dhis2/ui@^6.23.5":part was fixed, all of the sub-packages were still duplicated.To solve this, run the initial
npx yarn-deduplicate yarn.lock, thenyarn, then anothernpx yarn-deduplicate yarn.lock.An easy way to spot this is if you have a diff like
+600 -10inyarn.lockafter theuidep was bumped, rather than a diff like+400 -400after the double-deduplicate has been run (example: dhis2/data-visualizer-app@363afce)Beta Was this translation helpful? Give feedback.
All reactions