Weld.Workspace (weld v0.7.2)

Copy Markdown View Source

Discovers and loads a monorepo workspace into a graph-native representation.

Summary

Types

t()

@type t() :: %Weld.Workspace{
  discovery: Weld.Workspace.Discovery.result(),
  graph: Weld.Graph.t(),
  manifest: Weld.Manifest.t(),
  projects: %{optional(String.t()) => Weld.Workspace.Project.t()}
}

Functions

file_owner(workspace, path)

@spec file_owner(t(), Path.t()) :: {:project, String.t()} | :global | :unknown

load!(manifest)

@spec load!(Weld.Manifest.t()) :: t()

projects(workspace)

@spec projects(t()) :: [Weld.Workspace.Project.t()]