mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
fix(@angular-devkit/core): NodeJSAsyncHost.isFile should check for a file
This commit is contained in:
parent
ac23dc0913
commit
225cd36f49
@ -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()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user