Type alias: CreateNodesFunction<T>

Ƭ CreateNodesFunction<T>: (projectConfigurationFile: string, options: T | undefined, context: CreateNodesContext) => { externalNodes?: Record<string, ProjectGraphExternalNode> ; projects?: Record<string, Optional<ProjectConfiguration, "root">> }

Type parameters

NameType
Tunknown

Type declaration

▸ (projectConfigurationFile, options, context): Object

A function which parses a configuration file into a set of nodes. Used for creating nodes for the ProjectGraph

Parameters
NameType
projectConfigurationFilestring
optionsT | undefined
contextCreateNodesContext
Returns

Object

NameTypeDescription
externalNodes?Record<string, ProjectGraphExternalNode>A map of external node name -> external node. External nodes do not have a root, so the key is their name.
projects?Record<string, Optional<ProjectConfiguration, "root">>A map of project root -> project configuration