Skip to content

Commit 860d00f

Browse files
committed
cleanup(core): drop fileMap and allWorkspaceFiles from cached graph in daemon
1 parent 5a1735b commit 860d00f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/nx/src/daemon/server/handle-hash-tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function handleHashTasks(payload: {
1717
taskGraph: TaskGraph;
1818
cwd: string;
1919
}) {
20-
const { error, projectGraph, allWorkspaceFiles, fileMap, rustReferences } =
20+
const { error, projectGraph, rustReferences } =
2121
await getCachedSerializedProjectGraphPromise();
2222

2323
if (error) {

packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ interface SerializedProjectGraph {
4747
error: Error | null;
4848
projectGraph: ProjectGraph | null;
4949
projectFileMapCache: FileMapCache | null;
50-
fileMap: FileMap | null;
51-
allWorkspaceFiles: FileData[] | null;
5250
serializedProjectGraph: string | null;
5351
serializedSourceMaps: string | null;
5452
sourceMaps: ConfigurationSourceMaps | null;
@@ -155,8 +153,6 @@ export async function getCachedSerializedProjectGraphPromise(): Promise<Serializ
155153
sourceMaps: null,
156154
projectGraph: null,
157155
projectFileMapCache: null,
158-
fileMap: null,
159-
allWorkspaceFiles: null,
160156
rustReferences: null,
161157
};
162158
}
@@ -353,9 +349,7 @@ async function processFilesAndCreateAndSerializeProjectGraph(
353349
error: g.error,
354350
projectGraph: null,
355351
projectFileMapCache: null,
356-
fileMap: null,
357352
rustReferences: null,
358-
allWorkspaceFiles: null,
359353
serializedProjectGraph: null,
360354
serializedSourceMaps: null,
361355
sourceMaps: null,
@@ -371,9 +365,7 @@ async function processFilesAndCreateAndSerializeProjectGraph(
371365
),
372366
projectGraph: null,
373367
projectFileMapCache: null,
374-
fileMap: null,
375368
rustReferences: null,
376-
allWorkspaceFiles: null,
377369
serializedProjectGraph: null,
378370
serializedSourceMaps: null,
379371
sourceMaps: null,
@@ -386,9 +378,7 @@ async function processFilesAndCreateAndSerializeProjectGraph(
386378
error: err,
387379
projectGraph: null,
388380
projectFileMapCache: null,
389-
fileMap: null,
390381
rustReferences: null,
391-
allWorkspaceFiles: null,
392382
serializedProjectGraph: null,
393383
serializedSourceMaps: null,
394384
sourceMaps: null,
@@ -456,8 +446,6 @@ async function createAndSerializeProjectGraph({
456446
error: null,
457447
projectGraph,
458448
projectFileMapCache,
459-
fileMap,
460-
allWorkspaceFiles,
461449
serializedProjectGraph,
462450
serializedSourceMaps,
463451
sourceMaps,
@@ -471,8 +459,6 @@ async function createAndSerializeProjectGraph({
471459
error: e,
472460
projectGraph: null,
473461
projectFileMapCache: null,
474-
fileMap: null,
475-
allWorkspaceFiles: null,
476462
serializedProjectGraph: null,
477463
serializedSourceMaps: null,
478464
sourceMaps: null,

0 commit comments

Comments
 (0)