( cwd: string, project: string, )
| 92 | } |
| 93 | |
| 94 | export 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 | } |
no test coverage detected