oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.75k stars 2.64k forks source link

`bun patch` fails on scoped packages (e.g. `@org/pkg`) #11681

Open hamlim opened 2 months ago

hamlim commented 2 months ago

What version of Bun is running?

1.1.13-canary.1+386bc212b

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

Example repo: https://github.com/hamlim/bun-scoped-pkg-patch-bug

What is the expected behavior?

bun patch works as it does with a "plain" package name, e.g. bun patch react

What do you see instead?

bun patch @contentlayer/cli@0.3.4
[0.49ms] ".env"
bun patch v1.1.13-canary.1 (386bc212)

[477.00ms] done

error: could not find package: @contentlayer/cli@0.3.4

Additional information

No response

7f8ddd commented 2 months ago

True image