Skip to main content
Module

x/deno_graph/types.ts>ModuleGraphJson

The module graph logic for Deno CLI
Go to Latest
interface ModuleGraphJson
import { type ModuleGraphJson } from "https://deno.land/x/deno_graph@0.66.0/types.ts";

The plain-object representation of a module graph that is suitable for serialization to JSON.

Properties

roots: string[]

The module specifiers (URL string) of the roots of the module graph of which the module graph was built for.

modules: ModuleJson[]

An array of modules that are part of the module graph.

optional
imports: GraphImportJson[]

External imports that were added to the graph when it was being built. The key is the referrer which was used as a base to resolve the dependency. The value is the resolved dependency.

redirects: Record<string, string>

A record/map of any redirects encountered when resolving modules. The key was the requested module specifier and the value is the redirected module specifier.