aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Tiramify (A.K. Daniel) <94789999+TiranexDev@users.noreply.github.com> 2023-07-13 23:29:24 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-13 14:29:24 -0700
commit044b09afc2a8ce315d7f54a37a14aabf7e013744 (patch)
treecb0d44a1aee2a2a17db401885875f6344a050cf7 /src
parent9eb8eea2a81be6a20abb62544dc54a35ff4173a5 (diff)
downloadbun-044b09afc2a8ce315d7f54a37a14aabf7e013744.tar.gz
bun-044b09afc2a8ce315d7f54a37a14aabf7e013744.tar.zst
bun-044b09afc2a8ce315d7f54a37a14aabf7e013744.zip
Impl. fix (#3630)
Diffstat (limited to 'src')
-rw-r--r--src/cli/run_command.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig
index 48bbd36d2..271d9ecba 100644
--- a/src/cli/run_command.zig
+++ b/src/cli/run_command.zig
@@ -978,7 +978,7 @@ pub const RunCommand = struct {
var ORIGINAL_PATH: string = "";
var this_bundler: bundler.Bundler = undefined;
var root_dir_info = try configureEnvForRun(ctx, &this_bundler, null, &ORIGINAL_PATH, log_errors, force_using_bun);
- this_bundler.env.map.putDefault("npm_lifecycle_event", script_name_to_search) catch unreachable;
+ this_bundler.env.map.put("npm_lifecycle_event", script_name_to_search) catch unreachable;
if (root_dir_info.enclosing_package_json) |package_json| {
if (package_json.scripts) |scripts| {
switch (script_name_to_search.len) {