Skip to content

Commit da01d55

Browse files
committed
chore: adjust project graph creation 3
1 parent 2637c38 commit da01d55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/plugin-coverage/src/lib/nx/coverage-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { CoverageResult } from '../config.js';
1515
* Resolves the cached project graph for the current Nx workspace.
1616
* First tries to read cache and if not possible, go for the async creation.
1717
*/
18-
export async function resolveCachedProjectGraph() {
18+
async function resolveCachedProjectGraph() {
1919
const { readCachedProjectGraph, createProjectGraphAsync } = await import(
2020
'@nx/devkit'
2121
);

packages/plugin-eslint/src/lib/nx/find-all-projects.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { nxProjectsToConfig } from './projects-to-config.js';
77
* Resolves the cached project graph for the current Nx workspace.
88
* First tries to read cache and if not possible, go for the async creation.
99
*/
10-
export async function resolveCachedProjectGraph() {
10+
async function resolveCachedProjectGraph() {
1111
const { readCachedProjectGraph, createProjectGraphAsync } = await import(
1212
'@nx/devkit'
1313
);
@@ -47,7 +47,7 @@ export async function resolveCachedProjectGraph() {
4747
* @param options.exclude - Array of project names to exclude from the ESLint configuration
4848
* @returns ESLint config and patterns, intended to be passed to {@link eslintPlugin}
4949
*/
50-
export async function eslintConfigFromAllNxProjects(
50+
async function eslintConfigFromAllNxProjects(
5151
options: { exclude?: string[] } = {},
5252
): Promise<ESLintTarget[]> {
5353
const projectGraph = await resolveCachedProjectGraph();

0 commit comments

Comments
 (0)