@angular/cli 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,10 +5,12 @@ if ('NG_CLI_ANALYTICS' in process.env) {
5
5
  return;
6
6
  }
7
7
 
8
- try {
9
- const analytics = require('../../models/analytics');
8
+ (async () => {
9
+ try {
10
+ const analytics = require('../../models/analytics');
10
11
 
11
- if (!analytics.hasGlobalAnalyticsConfiguration()) {
12
- analytics.promptGlobalAnalytics();
13
- }
14
- } catch (_) {}
12
+ if (!analytics.hasGlobalAnalyticsConfiguration()) {
13
+ await analytics.promptGlobalAnalytics();
14
+ }
15
+ } catch (_) {}
16
+ })();
@@ -72,8 +72,12 @@ class VersionCommand extends command_1.Command {
72
72
  if (!__dirname.match(/node_modules/)) {
73
73
  let gitBranch = '??';
74
74
  try {
75
- const gitRefName = '' + child_process.execSync('git symbolic-ref HEAD', { cwd: __dirname });
76
- gitBranch = path.basename(gitRefName.replace('\n', ''));
75
+ const gitRefName = child_process.execSync('git rev-parse --abbrev-ref HEAD', {
76
+ cwd: __dirname,
77
+ encoding: 'utf8',
78
+ stdio: 'pipe',
79
+ });
80
+ gitBranch = gitRefName.replace('\n', '');
77
81
  }
78
82
  catch (_a) {
79
83
  }
@@ -194,9 +194,12 @@ class ArchitectCommand extends command_1.Command {
194
194
  logger: this.logger,
195
195
  analytics: analytics_1.isPackageNameSafeForAnalytics(builderConf) ? this.analytics : undefined,
196
196
  });
197
- const result = await run.output.toPromise();
197
+ const { error, success } = await run.output.toPromise();
198
198
  await run.stop();
199
- return result.success ? 0 : 1;
199
+ if (error) {
200
+ this.logger.error(error);
201
+ }
202
+ return success ? 0 : 1;
200
203
  }
201
204
  }
202
205
  async runArchitectTarget(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "homepage": "https://github.com/angular/angular-cli",
30
30
  "dependencies": {
31
- "@angular-devkit/architect": "0.800.3",
32
- "@angular-devkit/core": "8.0.3",
33
- "@angular-devkit/schematics": "8.0.3",
34
- "@schematics/angular": "8.0.3",
35
- "@schematics/update": "0.800.3",
31
+ "@angular-devkit/architect": "0.800.4",
32
+ "@angular-devkit/core": "8.0.4",
33
+ "@angular-devkit/schematics": "8.0.4",
34
+ "@schematics/angular": "8.0.4",
35
+ "@schematics/update": "0.800.4",
36
36
  "@yarnpkg/lockfile": "1.1.0",
37
37
  "debug": "^4.1.1",
38
38
  "ini": "1.3.5",
@@ -49,10 +49,10 @@
49
49
  "ng-update": {
50
50
  "migrations": "@schematics/angular/migrations/migration-collection.json",
51
51
  "packageGroup": {
52
- "@angular/cli": "8.0.3",
53
- "@angular-devkit/build-angular": "0.800.3",
54
- "@angular-devkit/build-ng-packagr": "0.800.3",
55
- "@angular-devkit/build-webpack": "0.800.3"
52
+ "@angular/cli": "8.0.4",
53
+ "@angular-devkit/build-angular": "0.800.4",
54
+ "@angular-devkit/build-ng-packagr": "0.800.4",
55
+ "@angular-devkit/build-webpack": "0.800.4"
56
56
  }
57
57
  },
58
58
  "engines": {