oven-sh / bun

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

Cannot exit "bun tsc -w" since v1.1.27 #14375

Open thgh opened 1 month ago

thgh commented 1 month ago

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

  1. Install either bun version 1.1.27, 1.1.28, 1.1.29, 1.1.30
  2. Run bun tsc -w
  3. Press Ctrl+C

https://codesandbox.io/p/devbox/repro-14375-hhlr5s

What is the expected behavior?

Script exits

What do you see instead? (macos)

Script does not exit Output: ^Cerror: Failed to run "tsc" due to signal SIGINT

What do you see instead? (codesandbox)

Script exits as wanted Output: ^Cerror: Failed to run "tsc" due to signal SIGINT

Additional information

Works as expected in 1.1.26 Typescript version 5.5.4, same issue in typescript@5.6.2

github-actions[bot] commented 4 weeks ago

Hello @thgh. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro will be closed if they have no activity within 3 days.

thgh commented 4 weeks ago

OK, here it is: https://codesandbox.io/p/devbox/repro-14375-hhlr5s Image