Skip to content

Commit 3159690

Browse files
committed
fix(@angular/cli): change the title of the process
This fixes an obscure Mac bug where VoiceOver would crash when listing processes. Fixes angular#6034.
1 parent d2e22b2 commit 3159690

File tree

2 files changed

+6
-4
lines changed
  • bin
  • packages/@angular/cli/bin

2 files changed

+6
-4
lines changed

bin/ng

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env node
22
'use strict';
33

4-
// Provide a title to the process in `ps`
5-
process.title = '@angular/cli';
4+
// Provide a title to the process in `ps`.
5+
// Due to an obscure Mac bug, do not start this title with any symbol.
6+
process.title = 'ng';
67

78
require('../lib/bootstrap-local');
89
require('../packages/@angular/cli/bin/ng');

packages/@angular/cli/bin/ng

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env node
22
'use strict';
33

4-
// Provide a title to the process in `ps`
5-
process.title = '@angular/cli';
4+
// Provide a title to the process in `ps`.
5+
// Due to an obscure Mac bug, do not start this title with any symbol.
6+
process.title = 'ng';
67

78
const CliConfig = require('../models/config').CliConfig;
89
const Version = require('../upgrade/version').Version;

0 commit comments

Comments
 (0)