From 0f4965cf62f59891fa4675c101a001ac373c2d71 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Wed, 7 Jun 2023 12:47:18 +0200 Subject: [PATCH] silence compodoc when running storybook with --quiet --- .../angular/src/builders/start-storybook/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/frameworks/angular/src/builders/start-storybook/index.ts b/code/frameworks/angular/src/builders/start-storybook/index.ts index da43aa8c95a4..1f22db6d3ce1 100644 --- a/code/frameworks/angular/src/builders/start-storybook/index.ts +++ b/code/frameworks/angular/src/builders/start-storybook/index.ts @@ -58,9 +58,13 @@ const commandBuilder: BuilderHandlerFn = (options, cont const builder = from(setup(options, context)).pipe( switchMap(({ tsConfig }) => { const runCompodoc$ = options.compodoc - ? runCompodoc({ compodocArgs: options.compodocArgs, tsconfig: tsConfig }, context).pipe( - mapTo({ tsConfig }) - ) + ? runCompodoc( + { + compodocArgs: [...options.compodocArgs, ...(options.quiet ? ['--silent'] : [])], + tsconfig: tsConfig, + }, + context + ).pipe(mapTo({ tsConfig })) : of({}); return runCompodoc$.pipe(mapTo({ tsConfig }));