@@ -231,17 +231,17 @@ def run_frontend(root: Path, port: str, backend_present: bool = True):
231231 port: The port to run the frontend on.
232232 backend_present: Whether the backend is present.
233233 """
234- from reflex .utils import prerequisites
234+ from reflex .utils import js_runtimes
235235
236236 # validate dependencies before run
237- prerequisites .validate_frontend_dependencies (init = False )
237+ js_runtimes .validate_frontend_dependencies (init = False )
238238
239239 # Run the frontend in development mode.
240240 console .rule ("[bold green]App Running" )
241241 os .environ ["PORT" ] = str (get_config ().frontend_port if port is None else port )
242242 run_process_and_launch_url (
243243 [
244- * prerequisites .get_js_package_executor (raise_on_none = True )[0 ],
244+ * js_runtimes .get_js_package_executor (raise_on_none = True )[0 ],
245245 "run" ,
246246 "dev" ,
247247 ],
@@ -257,16 +257,16 @@ def run_frontend_prod(root: Path, port: str, backend_present: bool = True):
257257 port: The port to run the frontend on.
258258 backend_present: Whether the backend is present.
259259 """
260- from reflex .utils import prerequisites
260+ from reflex .utils import js_runtimes
261261
262262 # Set the port.
263263 os .environ ["PORT" ] = str (get_config ().frontend_port if port is None else port )
264264 # validate dependencies before run
265- prerequisites .validate_frontend_dependencies (init = False )
265+ js_runtimes .validate_frontend_dependencies (init = False )
266266 # Run the frontend in production mode.
267267 console .rule ("[bold green]App Running" )
268268 run_process_and_launch_url (
269- [* prerequisites .get_js_package_executor (raise_on_none = True )[0 ], "run" , "prod" ],
269+ [* js_runtimes .get_js_package_executor (raise_on_none = True )[0 ], "run" , "prod" ],
270270 backend_present ,
271271 )
272272
@@ -670,7 +670,7 @@ def output_system_info():
670670 if console ._LOG_LEVEL > constants .LogLevel .DEBUG :
671671 return
672672
673- from reflex .utils import prerequisites
673+ from reflex .utils import js_runtimes
674674
675675 config = get_config ()
676676 try :
@@ -684,13 +684,13 @@ def output_system_info():
684684
685685 dependencies = [
686686 f"[Reflex { constants .Reflex .VERSION } with Python { platform .python_version ()} (PATH: { sys .executable } )]" ,
687- f"[Node { prerequisites .get_node_version ()} (Minimum: { constants .Node .MIN_VERSION } ) (PATH:{ path_ops .get_node_path ()} )]" ,
687+ f"[Node { js_runtimes .get_node_version ()} (Minimum: { constants .Node .MIN_VERSION } ) (PATH:{ path_ops .get_node_path ()} )]" ,
688688 ]
689689
690690 system = platform .system ()
691691
692692 dependencies .append (
693- f"[Bun { prerequisites .get_bun_version ()} (Minimum: { constants .Bun .MIN_VERSION } ) (PATH: { path_ops .get_bun_path ()} )]"
693+ f"[Bun { js_runtimes .get_bun_version ()} (Minimum: { constants .Bun .MIN_VERSION } ) (PATH: { path_ops .get_bun_path ()} )]"
694694 )
695695
696696 if system == "Linux" :
@@ -704,10 +704,10 @@ def output_system_info():
704704 console .debug (f"{ dep } " )
705705
706706 console .debug (
707- f"Using package installer at: { prerequisites .get_nodejs_compatible_package_managers (raise_on_none = False )} "
707+ f"Using package installer at: { js_runtimes .get_nodejs_compatible_package_managers (raise_on_none = False )} "
708708 )
709709 console .debug (
710- f"Using package executer at: { prerequisites .get_js_package_executor (raise_on_none = False )} "
710+ f"Using package executer at: { js_runtimes .get_js_package_executor (raise_on_none = False )} "
711711 )
712712 if system != "Windows" :
713713 console .debug (f"Unzip path: { path_ops .which ('unzip' )} " )
0 commit comments