Skip to content

Commit

Permalink
fix(@angular/cli): use realpath for project root
Browse files Browse the repository at this point in the history
Fix #2726
  • Loading branch information
filipesilva authored and Brocco committed May 24, 2017
1 parent 627e722 commit 3ca583b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@angular/cli/utilities/find-up.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { existsSync, realpathSync } from 'fs';
import { existsSync } from 'fs';

export function findUp(names: string | string[], from: string, stopOnNodeModules = false) {
if (!Array.isArray(names)) {
Expand All @@ -12,7 +12,7 @@ export function findUp(names: string | string[], from: string, stopOnNodeModules
for (const name of names) {
const p = path.join(currentDir, name);
if (existsSync(p)) {
return realpathSync(p);
return p;
}
}

Expand Down

0 comments on commit 3ca583b

Please sign in to comment.