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
(cherry picked from commit c9a7cd8)
  • Loading branch information
meeroslav authored and FrozenPandaz committed May 9, 2023
1 parent da912b2 commit ad536c4
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

0 comments on commit ad536c4

Please sign in to comment.