From 4fb7857974d74359a700ba4c202f6701f49138cb Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Mon, 19 Feb 2024 13:15:40 +0000 Subject: [PATCH] fix(core): propagate `verbose` flag when running `init` generator during `nx add` command --- packages/nx/src/command-line/add/add.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/add/add.ts b/packages/nx/src/command-line/add/add.ts index d9fd026fd796a..4bb53936015b2 100644 --- a/packages/nx/src/command-line/add/add.ts +++ b/packages/nx/src/command-line/add/add.ts @@ -118,7 +118,10 @@ async function initializePlugin( await runNxAsync( `g ${pkgName}:${initGenerator} --keepExistingVersions${ updatePackageScripts ? ' --updatePackageScripts' : '' - }` + }`, + { + silent: !options.verbose, + } ); } catch (e) { spinner.fail();