diff --git a/packages/nx/src/tasks-runner/run-command.ts b/packages/nx/src/tasks-runner/run-command.ts index 9ad8c806b613d5..222fa3f745207f 100644 --- a/packages/nx/src/tasks-runner/run-command.ts +++ b/packages/nx/src/tasks-runner/run-command.ts @@ -230,10 +230,6 @@ async function ensureWorkspaceIsInSyncAndGetGraphs( extraOptions ); - if (process.env.NX_ENABLE_SYNC_GENERATORS !== 'true') { - return { projectGraph, taskGraph }; - } - // collect unique syncGenerators from the tasks const uniqueSyncGenerators = new Set(); for (const { target } of Object.values(taskGraph.tasks)) {