• determine the publish order of a workspace

    publish order is determined by the dependencies of the packages, so that for each package, all its dependencies are to be published before it

    Parameters

    • dependencies: Record<string, string[]>

    Returns string[]

    if there's a cycle in the dependencies