Skip to content

Commit

Permalink
fix(core): fix daemon plugins caching (nrwl#26321)
Browse files Browse the repository at this point in the history
<!-- 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 nrwl#26001
  • Loading branch information
meeroslav authored Jun 3, 2024
1 parent ccd16b1 commit 77d1c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/daemon/server/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -18,6 +18,7 @@ export async function getPlugins() {
workspaceRoot
);
cleanup = cleanupFn;
loadedPlugins = result;
return result;
}

Expand Down

0 comments on commit 77d1c15

Please sign in to comment.