mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +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> {
|
||||
return _callFs(fs.stat, getSystemPath(path)).pipe(
|
||||
map(stat => stat.isDirectory()),
|
||||
map(stat => stat.isFile()),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user