Skip to content

Commit 03fc0e6

Browse files
hanslmgechev
authored andcommitted
feat(@angular-devkit/architect-cli): wait for last output of build
This allows watching builds to work. They wont show logs though. Looking into making a better UI for this tool.
1 parent a90ba8e commit 03fc0e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular_devkit/architect_cli/bin/architect.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { NodeJsSyncHost, createConsoleLogger } from '@angular-devkit/core/node';
2121
import { existsSync, readFileSync } from 'fs';
2222
import * as minimist from 'minimist';
2323
import * as path from 'path';
24+
import { last } from 'rxjs/operators';
2425
import { MultiProgressBar } from '../src/progress';
2526

2627

@@ -147,7 +148,7 @@ async function _executeTarget(
147148
148149
// Wait for full completion of the builder.
149150
try {
150-
const result = await run.result;
151+
const result = await run.output.pipe(last()).toPromise();
151152
152153
if (result.success) {
153154
parentLogger.info(terminal.green('SUCCESS'));

0 commit comments

Comments
 (0)