def METHOD_NAME(dir, runas=None, env=None):
    """
    List installed Bower packages.
    dir
        The directory whose packages will be listed
    runas
        The user to run Bower with
    env
        Environment variables to set when invoking Bower. Uses the same ``env``
        format as the :py:func:`cmd.run <salt.modules.cmdmod.run>` execution
        function.
    CLI Example:
    .. code-block:: bash
        salt '*' bower.list /path/to/project
    """
    _check_valid_version()
    cmd = _construct_bower_command("list")
    cmd.append("--offline")
    result = __salt__["cmd.run_all"](
        cmd, cwd=dir, runas=runas, env=env, python_shell=False
    )
    if result["retcode"] != 0:
        raise CommandExecutionError(result["stderr"])
    return salt.utils.json.loads(result["stdout"])["dependencies"]