diff --git a/packages/nx/src/daemon/server/plugins.ts b/packages/nx/src/daemon/server/plugins.ts index 38f4b59867..f886796ea8 100644 --- a/packages/nx/src/daemon/server/plugins.ts +++ b/packages/nx/src/daemon/server/plugins.ts @@ -5,7 +5,7 @@ import { } from '../../project-graph/plugins/internal-api'; import { workspaceRoot } from '../../utils/workspace-root'; -let loadedPlugins: Promise; +let loadedPlugins: LoadedNxPlugin[]; let cleanup: () => void; export async function getPlugins() { @@ -18,6 +18,7 @@ export async function getPlugins() { workspaceRoot ); cleanup = cleanupFn; + loadedPlugins = result; return result; }