diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/run_command.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index 17b12dcfb..24304f169 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -960,6 +960,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; if (root_dir_info.enclosing_package_json) |package_json| { if (package_json.scripts) |scripts| { switch (script_name_to_search.len) { |