From 53165230c4a1f79e4f807cb5e9d22303d2999200 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 29 May 2024 18:18:14 -0400 Subject: [PATCH] chore(misc): format --- packages/jest/src/plugins/plugin.ts | 6 +++++- packages/nuxt/src/plugins/plugin.ts | 9 ++++++--- .../nx/src/daemon/server/handle-nx-workspace-files.ts | 5 ++++- .../nx/src/generators/utils/project-configuration.ts | 4 +--- .../src/project-graph/utils/retrieve-workspace-files.ts | 6 +++++- packages/remix/src/plugins/plugin.ts | 9 ++++++--- 6 files changed, 27 insertions(+), 12 deletions(-) diff --git a/packages/jest/src/plugins/plugin.ts b/packages/jest/src/plugins/plugin.ts index 5a89d1d8524da5..9815403ebb7ec0 100644 --- a/packages/jest/src/plugins/plugin.ts +++ b/packages/jest/src/plugins/plugin.ts @@ -94,7 +94,11 @@ export const createNodes: CreateNodes = [ options = normalizeOptions(options); - const hash = await calculateHashForCreateNodes(projectRoot, options, context); + const hash = await calculateHashForCreateNodes( + projectRoot, + options, + context + ); targetsCache[hash] ??= await buildJestTargets( configFilePath, projectRoot, diff --git a/packages/nuxt/src/plugins/plugin.ts b/packages/nuxt/src/plugins/plugin.ts index 70165062617233..c1614e50456d4b 100644 --- a/packages/nuxt/src/plugins/plugin.ts +++ b/packages/nuxt/src/plugins/plugin.ts @@ -62,9 +62,12 @@ export const createNodes: CreateNodes = [ options = normalizeOptions(options); - const hash = await calculateHashForCreateNodes(projectRoot, options, context, [ - getLockFileName(detectPackageManager(context.workspaceRoot)), - ]); + const hash = await calculateHashForCreateNodes( + projectRoot, + options, + context, + [getLockFileName(detectPackageManager(context.workspaceRoot))] + ); targetsCache[hash] ??= await buildNuxtTargets( configFilePath, projectRoot, diff --git a/packages/nx/src/daemon/server/handle-nx-workspace-files.ts b/packages/nx/src/daemon/server/handle-nx-workspace-files.ts index 1f1c2e5e78fcdf..c4a8c03b04025a 100644 --- a/packages/nx/src/daemon/server/handle-nx-workspace-files.ts +++ b/packages/nx/src/daemon/server/handle-nx-workspace-files.ts @@ -5,7 +5,10 @@ import { HandlerResult } from './server'; export async function handleNxWorkspaceFiles( projectRootMap: Record ): Promise { - const files = await getNxWorkspaceFilesFromContext(workspaceRoot, projectRootMap); + const files = await getNxWorkspaceFilesFromContext( + workspaceRoot, + projectRootMap + ); return { response: JSON.stringify(files), description: 'handleNxWorkspaceFiles', diff --git a/packages/nx/src/generators/utils/project-configuration.ts b/packages/nx/src/generators/utils/project-configuration.ts index 44117a97c41b2d..52fde37740f54b 100644 --- a/packages/nx/src/generators/utils/project-configuration.ts +++ b/packages/nx/src/generators/utils/project-configuration.ts @@ -5,9 +5,7 @@ import { buildProjectConfigurationFromPackageJson, getGlobPatternsFromPackageManagerWorkspaces, } from '../../plugins/package-json-workspaces'; -import { - buildProjectFromProjectJson, -} from '../../plugins/project-json/build-nodes/project-json'; +import { buildProjectFromProjectJson } from '../../plugins/project-json/build-nodes/project-json'; import { renamePropertyWithStableKeys } from '../../adapter/angular-json'; import { ProjectConfiguration, 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 8ba511e34088bf..d87792f1093fc9 100644 --- a/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts +++ b/packages/nx/src/project-graph/utils/retrieve-workspace-files.ts @@ -101,7 +101,11 @@ export async function retrieveProjectConfigurationsWithAngularProjects( workspaceRoot ); - const res = await retrieveProjectConfigurations(plugins, workspaceRoot, nxJson); + const res = await retrieveProjectConfigurations( + plugins, + workspaceRoot, + nxJson + ); cleanup(); return res; } diff --git a/packages/remix/src/plugins/plugin.ts b/packages/remix/src/plugins/plugin.ts index cd8babe5c11359..f68b11e5570792 100644 --- a/packages/remix/src/plugins/plugin.ts +++ b/packages/remix/src/plugins/plugin.ts @@ -66,9 +66,12 @@ export const createNodes: CreateNodes = [ options = normalizeOptions(options); - const hash = await calculateHashForCreateNodes(projectRoot, options, context, [ - getLockFileName(detectPackageManager(context.workspaceRoot)), - ]); + const hash = await calculateHashForCreateNodes( + projectRoot, + options, + context, + [getLockFileName(detectPackageManager(context.workspaceRoot))] + ); targetsCache[hash] ??= await buildRemixTargets( configFilePath, projectRoot,