From 3b8b79b1da7ed14a188ba2cb5c845db407e2d761 Mon Sep 17 00:00:00 2001 From: Max Kless Date: Wed, 17 Apr 2024 10:28:59 +0200 Subject: [PATCH] chore(core): review fixes --- .../src/plugins/project-json/build-nodes/project-json.ts | 5 +++-- packages/nx/src/project-graph/plugins/utils.ts | 7 +------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/nx/src/plugins/project-json/build-nodes/project-json.ts b/packages/nx/src/plugins/project-json/build-nodes/project-json.ts index 14c6c5acf9a65c..51d0989504317a 100644 --- a/packages/nx/src/plugins/project-json/build-nodes/project-json.ts +++ b/packages/nx/src/plugins/project-json/build-nodes/project-json.ts @@ -11,8 +11,9 @@ export const ProjectJsonProjectsPlugin: NxPluginV2 = { createNodes: [ '{project.json,**/project.json}', (file, _, { workspaceRoot }) => { - let json: ProjectConfiguration; - json = readJsonFile(join(workspaceRoot, file)); + const json = readJsonFile( + join(workspaceRoot, file) + ); const project = buildProjectFromProjectJson(json, file); return { diff --git a/packages/nx/src/project-graph/plugins/utils.ts b/packages/nx/src/project-graph/plugins/utils.ts index 17ac3c0af49912..cdef4e16a2e5a8 100644 --- a/packages/nx/src/project-graph/plugins/utils.ts +++ b/packages/nx/src/project-graph/plugins/utils.ts @@ -9,12 +9,7 @@ import type { LoadedNxPlugin, NormalizedPlugin, } from './internal-api'; -import { - CreateNodesResult, - type CreateNodesContext, - type NxPlugin, - type NxPluginV2, -} from './public-api'; +import type { CreateNodesContext, NxPlugin, NxPluginV2 } from './public-api'; import { AggregateCreateNodesError, CreateNodesError } from '../error-types'; export function isNxPluginV2(plugin: NxPlugin): plugin is NxPluginV2 {