Skip to content

Commit

Permalink
fix(@angular-devkit/architect-cli): remove minimist _ from options
Browse files Browse the repository at this point in the history
Closes #18889

(cherry picked from commit c6aeb60)
  • Loading branch information
alan-agius4 committed Sep 25, 2020
1 parent 62500e7 commit 0b7dc58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular_devkit/architect_cli/bin/architect.ts
Expand Up @@ -84,13 +84,12 @@ async function _executeTarget(
const targetSpec = { project, target, configuration };

delete argv['help'];
argv['_'] = [];

const logger = new logging.Logger('jobs');
const logs: logging.LogEntry[] = [];
logger.subscribe(entry => logs.push({ ...entry, message: `${entry.name}: ` + entry.message }));

const run = await architect.scheduleTarget(targetSpec, argv, { logger });
const { _, ...options } = argv;
const run = await architect.scheduleTarget(targetSpec, options, { logger });
const bars = new MultiProgressBar<number, BarInfo>(':name :bar (:current/:total) :status');

run.progress.subscribe(update => {
Expand Down

0 comments on commit 0b7dc58

Please sign in to comment.