oven-sh / bun

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

pnpm bun run xxx.ts only works at root dir #10132

Closed recallwei closed 5 months ago

recallwei commented 5 months ago

What version of Bun is running?

1.1.3

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

My repository root dir is /interview, and I run this command at /interview/quiz, the target file is /interview/quiz/lazyman.ts, but cannot find the script. image

What is the expected behavior?

cd to inner dir, and I want to pnpm bun run **.ts anywhere.

What do you see instead?

No response

Additional information

No response

Jarred-Sumner commented 5 months ago

i think i know why

Jarred-Sumner commented 5 months ago

but need to test it first

Jarred-Sumner commented 5 months ago

Turns out, this is a pnpm bug. You should file an issue there. You can also try running bun run xxx.ts

image