MCPcopy Create free account
hub / github.com/code-pushup/cli / nxShowProjectJson

Function nxShowProjectJson

testing/test-nx-utils/src/lib/utils/nx.ts:94–105  ·  view source on GitHub ↗
(
  cwd: string,
  project: string,
)

Source from the content-addressed store, hash-verified

92}
93
94export async function nxShowProjectJson<T extends ProjectConfiguration>(
95 cwd: string,
96 project: string,
97) {
98 const { code, stderr, stdout } = await executeProcess({
99 command: 'npx',
100 args: ['nx', 'show', `project --json ${project}`],
101 cwd,
102 });
103
104 return { code, stderr, projectJson: JSON.parse(stdout) as T };
105}

Calls 1

executeProcessFunction · 0.90

Tested by

no test coverage detected