From 76fb93d9b8012be7519b9aa4a7bf2b113aee2cdc Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Thu, 10 Mar 2022 15:36:18 -0500 Subject: [PATCH] chore(core): format run-one (#9270) --- packages/cli/lib/parse-run-one-options.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/cli/lib/parse-run-one-options.ts b/packages/cli/lib/parse-run-one-options.ts index c508cd629a895..f6d46679409ab 100644 --- a/packages/cli/lib/parse-run-one-options.ts +++ b/packages/cli/lib/parse-run-one-options.ts @@ -127,8 +127,7 @@ export function parseRunOneOptions( } // we need both to be able to run a target, no tasks runner - const p = - workspaceConfiguration.projects?.[project]; + const p = workspaceConfiguration.projects?.[project]; if (!p) return false; let targets; @@ -151,10 +150,7 @@ export function parseRunOneOptions( configuration = parsedArgs.configuration; } else if (parsedArgs.prod) { configuration = 'production'; - } else if ( - !configuration && - targets?.[target]?.defaultConfiguration - ) { + } else if (!configuration && targets?.[target]?.defaultConfiguration) { configuration = targets[target].defaultConfiguration; }