Skip to content

Commit 3506168

Browse files
committed
refactor(@angular-devkit/build-angular): create observable from check port promise
1 parent ba96116 commit 3506168

File tree

1 file changed

+2
-2
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+2
-2
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { WebpackDevServerBuilder } from '@angular-devkit/build-webpack';
1616
import { Path, getSystemPath, resolve, tags, virtualFs } from '@angular-devkit/core';
1717
import { Stats, existsSync, readFileSync } from 'fs';
1818
import * as path from 'path';
19-
import { Observable, throwError } from 'rxjs';
19+
import { Observable, from, throwError } from 'rxjs';
2020
import { concatMap, map, tap } from 'rxjs/operators';
2121
import * as url from 'url';
2222
import * as webpack from 'webpack';
@@ -67,7 +67,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
6767
let first = true;
6868
let opnAddress: string;
6969

70-
return checkPort(options.port, options.host).pipe(
70+
return from(checkPort(options.port, options.host)).pipe(
7171
tap((port) => options.port = port),
7272
concatMap(() => this._getBrowserOptions(options)),
7373
tap(opts => browserOptions = normalizeBuilderSchema(

0 commit comments

Comments
 (0)