Skip to content

Commit 225cd36

Browse files
clydinKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@angular-devkit/core): NodeJSAsyncHost.isFile should check for a file
1 parent ac23dc0 commit 225cd36

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/core/node

1 file changed

+1
-1
lines changed

packages/angular_devkit/core/node/host.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class NodeJsAsyncHost implements virtualFs.Host<fs.Stats> {
181181
}
182182
isFile(path: Path): Observable<boolean> {
183183
return _callFs(fs.stat, getSystemPath(path)).pipe(
184-
map(stat => stat.isDirectory()),
184+
map(stat => stat.isFile()),
185185
);
186186
}
187187

0 commit comments

Comments
 (0)