fix(core): fix version report when version is missing (#16888)

This commit is contained in:
Miroslav Jonaš 2023-05-09 18:35:30 +02:00 committed by GitHub
parent 942350810e
commit c9a7cd8b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}