Skip to content

Commit

Permalink
chore(core): format run-one (#9270)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Mar 10, 2022
1 parent 24c0c1b commit 76fb93d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/cli/lib/parse-run-one-options.ts
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 76fb93d

Please sign in to comment.