We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4006366 commit c7ff652Copy full SHA for c7ff652
1 file changed
packages/@angular/cli/bin/ng-update-message.js
@@ -6,14 +6,15 @@
6
7
const fs = require('fs');
8
const path = require('path');
9
+const os = require('os');
10
11
12
let found = false;
13
let current = path.dirname(path.dirname(__dirname));
14
while (current !== path.dirname(current)) {
15
if (fs.existsSync(path.join(current, 'angular-cli.json'))
16
|| fs.existsSync(path.join(current, '.angular-cli.json'))) {
- found = true;
17
+ found = os.homedir() !== current || fs.existsSync(path.join(current, 'package.json'));
18
break;
19
}
20
if (fs.existsSync(path.join(current, 'angular.json'))
0 commit comments