bun icon indicating copy to clipboard operation
bun copied to clipboard

bun dedupe needed

Open imattaai opened this issue 1 year ago • 1 comments

What is the problem this feature would solve?

When working with expo and react-native (or other JS projects) Package mismatch can lead to unexplained errors in the console. Several threads recommend using 'npm dedupe' which I haven't found an alternative for. What's worked for me is setting package "overrides" in package.json from recommendations and guessing the package.

What is the feature you are proposing to solve the problem?

Unlinke yarn.lock where you can see packages mentioned and versions, I would like a way to know the different versions of packages in my app so I can set an override or take alternative measures (upgrade/downgrade packages).

What alternatives have you considered?

Alternatives now are reverting to npm or guessing the overriding package from my current knowledge.

imattaai avatar Jan 31 '24 19:01 imattaai

If you run bun bun.lockb you'll get a print out of what packages and what dependencies are being resolved to. It's a bit manual but it could help you track down conflicting packages.

ibash avatar May 06 '24 16:05 ibash

Same as #1343

ArnaudBarre avatar Jun 27 '24 22:06 ArnaudBarre

Duplicate of #1343

Electroid avatar Jun 27 '24 22:06 Electroid

This is something we plan on implementing.

Electroid avatar Jun 27 '24 22:06 Electroid