Skip to content

Commit

Permalink
fix(core): fix version report when version is missing (#16888)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored May 9, 2023
1 parent 9423508 commit c9a7cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/bin/nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function main() {

if (process.argv[2] === '--version') {
console.log(stripIndents`Nx Version:
- Local: v${LOCAL_NX_VERSION ?? 'Not found'}
- Global: v${GLOBAL_NX_VERSION ?? 'Not found'}`);
- Local: ${LOCAL_NX_VERSION ? 'v' + LOCAL_NX_VERSION : 'Not found'}
- Global: ${GLOBAL_NX_VERSION ? 'v' + GLOBAL_NX_VERSION : 'Not found'}`);
process.exit(0);
}

Expand Down

1 comment on commit c9a7cd8

@vercel
Copy link

@vercel vercel bot commented on c9a7cd8 May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.