@@ -158,8 +158,8 @@ def js_run_binary(
158158 execution platform, which may not be the same as the target platform.
159159
160160 When set to `None` (the default), the value of the internal `//js:_hoist_runfiles_to_exec_cfg` build flag
161- is used. Pass `--//js:_hoist_runfiles_to_exec_cfg=true` on the command line or in `.bazelrc` to enable
162- globally. This flag is temporary and will be removed once the default is changed to `True`.
161+ is used. That flag is for internal testing only and should not be used. It is temporary and will be removed once
162+ the default is changed to `True`.
163163
164164 copy_srcs_to_bin: When True, all srcs files are copied to the output tree that are not already there.
165165
@@ -394,11 +394,12 @@ See https://github.com/aspect-build/rules_js/tree/main/docs#using-binaries-publi
394394 testonly = kwargs .get ("testonly" , False ),
395395 )
396396 runfiles_label = ":{}" .format (js_runfiles_name )
397- if hoist_runfiles_to_exec_cfg == True :
397+ if hoist_runfiles_to_exec_cfg :
398398 tools .append (runfiles_label )
399399 elif hoist_runfiles_to_exec_cfg == False :
400400 extra_srcs .append (runfiles_label )
401401 else :
402+ # hoist_runfiles_to_exec_cfg is None, so we will defer to the flag.
402403 tools = tools + select ({
403404 "@aspect_rules_js//js:_hoist_runfiles_to_exec_cfg_true" : [runfiles_label ],
404405 "//conditions:default" : [],
0 commit comments