bun repl disable inspector/debugger (#15594)

This commit is contained in:
Michael H
2024-12-06 08:41:21 +11:00
committed by GitHub
parent bcf023c829
commit 00b7d6479b

View File

@@ -327,6 +327,12 @@ pub const BunxCommand = struct {
this_bundler.env.map.put("npm_lifecycle_event", "bunx") catch unreachable;
this_bundler.env.map.put("npm_lifecycle_script", package_name) catch unreachable;
if (strings.eqlComptime(package_name, "bun-repl")) {
this_bundler.env.map.remove("BUN_INSPECT_CONNECT_TO");
this_bundler.env.map.remove("BUN_INSPECT_NOTIFY");
this_bundler.env.map.remove("BUN_INSPECT");
}
const ignore_cwd = this_bundler.env.get("BUN_WHICH_IGNORE_CWD") orelse "";
if (ignore_cwd.len > 0) {