Skip to content

Commit 3ca583b

Browse files
filipesilvaBrocco
authored andcommitted
fix(@angular/cli): use realpath for project root
Fix #2726
1 parent 627e722 commit 3ca583b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/utilities/find-up.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path';
2-
import { existsSync, realpathSync } from 'fs';
2+
import { existsSync } from 'fs';
33

44
export function findUp(names: string | string[], from: string, stopOnNodeModules = false) {
55
if (!Array.isArray(names)) {
@@ -12,7 +12,7 @@ export function findUp(names: string | string[], from: string, stopOnNodeModules
1212
for (const name of names) {
1313
const p = path.join(currentDir, name);
1414
if (existsSync(p)) {
15-
return realpathSync(p);
15+
return p;
1616
}
1717
}
1818

0 commit comments

Comments
 (0)