def _run_build():
    """Run the build command.

    Raises:
        Exit: If the build fails.
    """
    console.print("Building custom component...")

    _make_pyi_files()

    cmds = [sys.executable, "-m", "build", "."]
    if _run_commands_in_subprocess(cmds):
        console.info("Custom component built successfully!")
    else:
        raise click.exceptions.Exit(code=1)
Run the build command.

    Raises:
        Exit: If the build fails.
    
reflex/custom_components/custom_components.py