Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
74.29k
stars
2.77k
forks
source link
bun does not read jsconfig/tsconfig when running a file without .js or .ts extensions #11395
Open
adhusson opened 5 months ago
What version of Bun is running?
1.1.10+5102a9443
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
Create the following files:
cli-tool
jsconfig.json
dir/file.js
chmod +x cli-tool
Run
./cli-tool
mv cli-tool cli-tool.js
Run
./cli-tool.js
What is the expected behavior?
Running
./cli-tool{,.js}
should result inSuccess
What do you see instead?
./cli-tool
results inerror: Cannot find module "dir/file" ...
./cli-tool.js
results inSuccess
Additional information
No response