chore: remove bun env var detect (#7534)

### Summary


[Thread](https://openai.slack.com/archives/C08JZTV654K/p1764780129457519)

We were a bit aggressive on assuming package installer based on env
variables for BUN. Here we are removing those checks.
This commit is contained in:
Shijie Rao 2025-12-03 10:23:45 -08:00 committed by GitHub
parent 4785344c9c
commit c3e4f920b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,14 +95,6 @@ function detectPackageManager() {
return "bun";
}
if (
process.env.BUN_INSTALL ||
process.env.BUN_INSTALL_GLOBAL_DIR ||
process.env.BUN_INSTALL_BIN_DIR
) {
return "bun";
}
return userAgent ? "npm" : null;
}