feat(core): show version number when generating a new workspace (#7570)

This commit is contained in:
Craigory Coppola 2021-12-02 17:20:39 -06:00 committed by GitHub
parent 738708c11c
commit cc2aa9feba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,12 +128,13 @@ if (parsedArgs.help) {
(async function main() { (async function main() {
const packageManager: PackageManager = const packageManager: PackageManager =
parsedArgs.packageManager || detectInvokedPackageManager(); parsedArgs.packageManager || detectInvokedPackageManager();
const { name, cli, preset, appName, style, nxCloud } = await getConfiguration( const { name, cli, preset, appName, style, nxCloud } = await getConfiguration(
parsedArgs parsedArgs
); );
output.log({ output.log({
title: 'Nx is creating your workspace.', title: `Nx is creating your v${cliVersion} workspace.`,
bodyLines: [ bodyLines: [
'To make sure the command works reliably in all environments, and that the preset is applied correctly,', 'To make sure the command works reliably in all environments, and that the preset is applied correctly,',
`Nx will run "${packageManager} install" several times. Please wait.`, `Nx will run "${packageManager} install" several times. Please wait.`,