Skip to content

Commit

Permalink
fix(core): fix project graph analysis (#15941)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Mar 28, 2023
1 parent 89893b6 commit 44d090d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/nx/src/plugins/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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();
};
Expand Down

1 comment on commit 44d090d

@vercel
Copy link

@vercel vercel bot commented on 44d090d Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.