Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD env var #11078

Merged
merged 3 commits into from
May 15, 2024

Conversation

Jarred-Sumner
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner commented May 14, 2024

What does this PR do?

Fix BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD env var so that it handles more ways to say false. Any value which is not a falsy value makes it set to true, if it is set

For example:

  • BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD=123 bun --watch src/server.ts will disable clearing the screen
  • BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD=0 bun --watch src/server.ts will enable clearing the screen
  • BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD= bun --watch src/server.ts will enable clearing the screen

Fixes #10725

How did you verify your code works?

Did not test it.

Copy link

github-actions bot commented May 14, 2024

@Jarred-Sumner, your commit has failing tests :(

💪 1 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 2 failing tests Darwin x64

🐧💪 1 failing tests Linux AARCH64

🐧🖥 1 failing tests Linux x64 baseline

🪟💻 7 failing tests Windows x64 baseline

🪟💻 9 failing tests Windows x64

View logs

@Jarred-Sumner Jarred-Sumner requested review from a team and zackradisic and removed request for a team May 14, 2024 23:51
@Jarred-Sumner
Copy link
Collaborator Author

manually tested

image

@Jarred-Sumner Jarred-Sumner requested review from paperdave and removed request for zackradisic May 15, 2024 00:50
@Jarred-Sumner Jarred-Sumner merged commit c4840f8 into main May 15, 2024
45 of 52 checks passed
@Jarred-Sumner Jarred-Sumner deleted the jarred/no-config-clear-terminal branch May 15, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUN_CONFIG_NO_CLEAR_TERMINAL_ON_RELOAD doesn't work
2 participants