diff --git a/internal/node/launcher.sh b/internal/node/launcher.sh index 3d7bb93435..0b5f404de4 100644 --- a/internal/node/launcher.sh +++ b/internal/node/launcher.sh @@ -191,9 +191,9 @@ for ARG in "${ALL_ARGS[@]:-}"; do case "$ARG" in --bazel_node_modules_manifest=*) MODULES_MANIFEST="${ARG#--bazel_node_modules_manifest=}" ;; --nobazel_patch_module_resolver) - declare MAIN=$(rlocation "TEMPLATED_entry_point_manifest_path") + declare MAIN="TEMPLATED_entry_point_execroot_path" if [[ ! -f "$MAIN" ]]; then - MAIN="TEMPLATED_entry_point_execroot_path" + MAIN=$(rlocation "TEMPLATED_entry_point_manifest_path") fi LAUNCHER_NODE_OPTIONS=( "--require" "$node_patches_script" )