Skip to content

Commit

Permalink
fix(core): last project should be visible in nx show projects
Browse files Browse the repository at this point in the history
Observed last project not being visible when running `nx show`
  • Loading branch information
AgentEnder committed Feb 28, 2023
1 parent d21eb1d commit 684a59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createProjectGraphAsync } from '../project-graph/project-graph';
export async function show(args: { object: 'projects' }): Promise<void> {
if (args.object == 'projects') {
const graph = await createProjectGraphAsync();
process.stdout.write(Object.keys(graph.nodes).join('\n'));
console.log(Object.keys(graph.nodes).join('\n'));
} else {
throw new Error(`Unrecognized option: ${args.object}`);
}
Expand Down

0 comments on commit 684a59c

Please sign in to comment.