Skip to content

Commit dd2fc25

Browse files
committed
refactor: wip
1 parent e6ce3bf commit dd2fc25

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export async function nxShowProjectJson<T extends ProjectConfiguration>(
115115
};
116116
return {
117117
code: execError.code ?? 1,
118-
stderr: execError.stderr ?? String(error),
119-
projectJson: JSON.parse(execError.stdout ?? '{}') as T,
118+
stderr: execError.stderr ?? String((error as Error).message),
119+
projectJson: JSON.parse('{}'),
120120
};
121121
}
122122
}

0 commit comments

Comments
 (0)