From 44d090d332cdab0af35396f48f4358924cd1ac5a Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Tue, 28 Mar 2023 18:45:28 -0400 Subject: [PATCH] fix(core): fix project graph analysis (#15941) --- packages/nx/src/plugins/js/index.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/nx/src/plugins/js/index.ts b/packages/nx/src/plugins/js/index.ts index 33fd7d9c857c7..d0cf0d102b264 100644 --- a/packages/nx/src/plugins/js/index.ts +++ b/packages/nx/src/plugins/js/index.ts @@ -18,7 +18,10 @@ import { workspaceRoot } from '../../utils/workspace-root'; import { ensureDirSync } from 'fs-extra'; import { removeNpmNodes } from 'nx/src/plugins/js/lock-file/remove-npm-nodes'; -export const processProjectGraph: ProjectGraphProcessor = (graph, context) => { +export const processProjectGraph: ProjectGraphProcessor = async ( + graph, + context +) => { const builder = new ProjectGraphBuilder(graph); const lockHash = lockFileHash() ?? 'n/a'; @@ -33,7 +36,11 @@ export const processProjectGraph: ProjectGraphProcessor = (graph, context) => { buildNpmPackageNodes(builder); - buildExplicitDependencies(jsPluginConfig(readNxJson()), context, builder); + await buildExplicitDependencies( + jsPluginConfig(readNxJson()), + context, + builder + ); return builder.getUpdatedProjectGraph(); };