Repository navigation
Add equivalent of yarn why - #9051
HurricanKai wants to merge 7 commits into
Conversation
|
Looks like the CI failures are not due to code but some infra problem. Seems like tests are passing (which is expected as I have not modified any tested code, and not added tests for my new code).
|
|
tests should be written, they can be done so in a new file. the tests would mostly use bun.spawn() to run the |
paperclover
left a comment
There was a problem hiding this comment.
in addition to the above:
|
Moved this into it's own command. Not sure if I've done it right - I've done it similar to Will look into changing it a bit so |
|
I've not found a way to do this - loading the Lockfile directly seems to lead to some unreachable code, and I'm not sure how to solve this. |
|
I see that this PR has been closed, is there an alternative implementation of this that got added instead or is this looking for a new implementation? This is a very useful command in a monorepo, which I've used yarn for forever - to eg. see which packages are depending on a particular package, track why you have 2-3 versions of a package, which package depends on that version etc.. |




What does this PR do?
Adds a subcommand
bun why <package>this shows why a package is referenced. See also #692. This isn't 100% equivalent toyarn whybut it fulfills some of it's purpose already & provides code to build on later.How did you verify your code works?
I wrote automated tests (in-progress)
bun-debug test test-file-name.test)Are tests required for this kind of feature? Where to add them?