@@ -21,10 +21,7 @@ import {
2121 virtualFs ,
2222} from '@angular-devkit/core' ;
2323import { resolve as nodeResolve } from '@angular-devkit/core/node' ;
24- import { Observable } from 'rxjs/Observable' ;
25- import { forkJoin } from 'rxjs/observable/forkJoin' ;
26- import { of } from 'rxjs/observable/of' ;
27- import { _throw } from 'rxjs/observable/throw' ;
24+ import { Observable , forkJoin , of , throwError } from 'rxjs' ;
2825import { concatMap , map , tap } from 'rxjs/operators' ;
2926import {
3027 BuildEvent ,
@@ -248,7 +245,7 @@ export class Architect {
248245 concatMap ( ( pkgJson : JsonObject ) => {
249246 const pkgJsonBuildersentry = pkgJson [ 'builders' ] as string ;
250247 if ( ! pkgJsonBuildersentry ) {
251- return _throw ( new BuilderCannotBeResolvedException ( builderConfig . builder ) ) ;
248+ return throwError ( new BuilderCannotBeResolvedException ( builderConfig . builder ) ) ;
252249 }
253250
254251 buildersJsonPath = join ( dirname ( normalize ( pkgJsonPath ) ) , pkgJsonBuildersentry ) ;
@@ -262,7 +259,7 @@ export class Architect {
262259 builderPaths = builderPathsMap . builders [ builderName ] ;
263260
264261 if ( ! builderPaths ) {
265- return _throw ( new BuilderCannotBeResolvedException ( builderConfig . builder ) ) ;
262+ return throwError ( new BuilderCannotBeResolvedException ( builderConfig . builder ) ) ;
266263 }
267264
268265 // Resolve paths in the builder paths.
0 commit comments