Skip to content

Commit

Permalink
fix(webpack): set global.NX_GRAPH_CREATION when running plugin in cry…
Browse files Browse the repository at this point in the history
…stal migration
  • Loading branch information
leosvelperez committed Jun 21, 2024
1 parent 9948f95 commit d008c65
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ class ExecutorToPluginMigrator<T> {
return;
}

global.NX_GRAPH_CREATION = true;
for (const targetName of this.#targetAndProjectsToMigrate.keys()) {
const loadedPlugin = new LoadedNxPlugin(
{
Expand All @@ -425,12 +426,14 @@ class ExecutorToPluginMigrator<T> {
if (e instanceof ProjectConfigurationsError) {
projectConfigs = e.partialProjectConfigurationsResult;
} else {
global.NX_GRAPH_CREATION = false;
throw e;
}
}

this.#createNodesResultsForTargets.set(targetName, projectConfigs);
}
global.NX_GRAPH_CREATION = false;
}
}

Expand Down

0 comments on commit d008c65

Please sign in to comment.