Skip to content

Commit

Permalink
fix(graph): use errors when calculating hash
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Apr 18, 2024
1 parent dac110f commit 371582a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nx/src/command-line/graph/graph.ts
Expand Up @@ -769,7 +769,9 @@ async function createProjectGraphAndSourceMapClientResponse(
const dependencies = graph.dependencies;

const hasher = createHash('sha256');
hasher.update(JSON.stringify({ layout, projects, dependencies, sourceMaps }));
hasher.update(
JSON.stringify({ layout, projects, dependencies, sourceMaps, errors })
);

const hash = hasher.digest('hex');

Expand Down

0 comments on commit 371582a

Please sign in to comment.