Skip to content

Commit 3ee7ccf

Browse files
author
John Doe
committed
refactor: format code
1 parent 9cba9fc commit 3ee7ccf

File tree

1 file changed

+2
-1
lines changed
  • testing/test-nx-utils/src/lib/utils

1 file changed

+2
-1
lines changed

testing/test-nx-utils/src/lib/utils/nx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
9595
return { code: 0, stderr, projectJson: JSON.parse(stdout) as T };
9696
} catch (error) {
9797
const execError = error as { code?: number; stderr?: string };
98+
const fallbackProject: T = { name: project, root: '' } as T;
9899
return {
99100
code: execError.code ?? 1,
100101
stderr: execError.stderr ?? String(error),
101-
projectJson: { name: project, root: '' } as T,
102+
projectJson: fallbackProject,
102103
};
103104
}
104105
}

0 commit comments

Comments
 (0)