Skip to content

Commit

Permalink
chore(misc): format
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 29, 2024
1 parent d88b016 commit 5316523
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 12 deletions.
6 changes: 5 additions & 1 deletion packages/jest/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export const createNodes: CreateNodes<JestPluginOptions> = [

options = normalizeOptions(options);

const hash = await calculateHashForCreateNodes(projectRoot, options, context);
const hash = await calculateHashForCreateNodes(
projectRoot,
options,
context
);
targetsCache[hash] ??= await buildJestTargets(
configFilePath,
projectRoot,
Expand Down
9 changes: 6 additions & 3 deletions packages/nuxt/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ export const createNodes: CreateNodes<NuxtPluginOptions> = [

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,
Expand Down
5 changes: 4 additions & 1 deletion packages/nx/src/daemon/server/handle-nx-workspace-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { HandlerResult } from './server';
export async function handleNxWorkspaceFiles(
projectRootMap: Record<string, string>
): Promise<HandlerResult> {
const files = await getNxWorkspaceFilesFromContext(workspaceRoot, projectRootMap);
const files = await getNxWorkspaceFilesFromContext(
workspaceRoot,
projectRootMap
);
return {
response: JSON.stringify(files),
description: 'handleNxWorkspaceFiles',
Expand Down
4 changes: 1 addition & 3 deletions packages/nx/src/generators/utils/project-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
9 changes: 6 additions & 3 deletions packages/remix/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ export const createNodes: CreateNodes<RemixPluginOptions> = [

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,
Expand Down

0 comments on commit 5316523

Please sign in to comment.