fix(core): fix daemon plugins caching (#26321)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #26001
This commit is contained in:
Miroslav Jonaš 2024-06-03 13:32:02 +02:00 committed by GitHub
parent ccd16b10dd
commit 77d1c15bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import {
} from '../../project-graph/plugins/internal-api';
import { workspaceRoot } from '../../utils/workspace-root';
let loadedPlugins: Promise<LoadedNxPlugin[]>;
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;
}