diff --git a/docs/generated/devkit/ProjectGraphBuilder.md b/docs/generated/devkit/ProjectGraphBuilder.md index 66a11e556fb30..4e8c8b1b33263 100644 --- a/docs/generated/devkit/ProjectGraphBuilder.md +++ b/docs/generated/devkit/ProjectGraphBuilder.md @@ -53,13 +53,13 @@ The ProjectGraphProcessor has been deprecated. Use a [CreateNodes](../../devkit/ ### fileMap -• `Private` `Optional` `Readonly` **fileMap**: [`ProjectFileMap`](../../devkit/documents/ProjectFileMap) +• `Private` `Readonly` **fileMap**: [`ProjectFileMap`](../../devkit/documents/ProjectFileMap) --- ### graph -• `Optional` `Readonly` **graph**: [`ProjectGraph`](../../devkit/documents/ProjectGraph) +• `Readonly` **graph**: [`ProjectGraph`](../../devkit/documents/ProjectGraph) --- diff --git a/packages/nx/src/project-graph/project-graph-builder.ts b/packages/nx/src/project-graph/project-graph-builder.ts index 3938f0747076c..e5b7ba75cefbb 100644 --- a/packages/nx/src/project-graph/project-graph-builder.ts +++ b/packages/nx/src/project-graph/project-graph-builder.ts @@ -164,7 +164,7 @@ export class ProjectGraphBuilder { ) { throw new Error(`Target project does not exist: ${targetProjectName}`); } - // this._graph.dependencies[sourceProjectName] = this._graph.dependencies[ + // this.graph.dependencies[sourceProjectName] = this.graph.dependencies[ // sourceProjectName // ].filter((d) => d.target !== targetProjectName); if (!this.removedEdges[sourceProjectName]) { @@ -323,7 +323,7 @@ export class ProjectGraphBuilder { sourceProject: string ): Map> { const fileDeps = new Map>(); - const files = this.fileMap?.[sourceProject] || []; + const files = this.fileMap[sourceProject] || []; if (!files) { return fileDeps; }