fix(@angular-devkit/core): NodeJSAsyncHost.isFile should check for a file

This commit is contained in:
Charles Lyding 2019-05-08 11:40:51 -04:00 committed by Keen Yee Liau
parent ac23dc0913
commit 225cd36f49

View File

@ -181,7 +181,7 @@ export class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
} }
isFile(path: Path): Observable<boolean> { isFile(path: Path): Observable<boolean> {
return _callFs(fs.stat, getSystemPath(path)).pipe( return _callFs(fs.stat, getSystemPath(path)).pipe(
map(stat => stat.isDirectory()), map(stat => stat.isFile()),
); );
} }