From 00a7004b467cf6e5e805cb6de61cdc04fdc4ad17 Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Mon, 23 Oct 2023 15:32:14 -0400 Subject: [PATCH] fix(core): sort all workspace file after combining --- .../nx/src/project-graph/utils/retrieve-workspace-files.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts b/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts index 37ac9fd744231..0775df0b377b0 100644 --- a/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts +++ b/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts @@ -258,8 +258,7 @@ function buildAllWorkspaceFiles( ): FileData[] { performance.mark('get-all-workspace-files:start'); let fileData: FileData[] = Object.values(projectFileMap).flat(); - - fileData = fileData.concat(globalFiles); + fileData = fileData.concat(globalFiles).sort(); performance.mark('get-all-workspace-files:end'); performance.measure( 'get-all-workspace-files',