fix(core): fix version report when version is missing (#16888)
This commit is contained in:
parent
942350810e
commit
c9a7cd8b01
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user