Skip to content

Commit

Permalink
fix(@angular-devkit/core): correct workspace discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and mgechev committed Mar 27, 2019
1 parent 4a8022e commit bf52b26
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function _findUp(host: virtualFs.Host, names: string[], from: Path): Promi
do {
for (const name of names) {
const p = join(from, name);
if (await host.exists(p)) {
if (await host.exists(p).toPromise()) {
return p;
}
}
Expand All @@ -88,8 +88,6 @@ export class Workspace {
protected static _workspaceFileNames = [
'angular.json',
'.angular.json',
'workspace.json',
'.workspace.json',
];

private readonly _workspaceSchemaPath = normalize(require.resolve('./workspace-schema.json'));
Expand Down

0 comments on commit bf52b26

Please sign in to comment.