@@ -3,10 +3,30 @@ var path = require('path');
3
3
var fs = require ( 'fs' ) ;
4
4
5
5
module . exports = function ( options ) {
6
- options . cli = {
7
- name : 'ng' ,
8
- root : path . join ( __dirname , '..' , '..' ) ,
9
- npmPackage : 'angular-cli'
10
- } ;
11
- return cli ( options ) ;
6
+ process . stdout . write = ( function ( write ) {
7
+ return function ( string , encoding , fd ) {
8
+ if ( / v e r s i o n : / . test ( string ) || / w a r n i n g : / . test ( string ) ) {
9
+ return ;
10
+ }
11
+ string = string . replace ( / e m b e r - c l i / g, 'angular-cli' ) ;
12
+ string = string . replace ( / e m b e r / g, 'ng' ) ;
13
+ write . apply ( process . stdout , arguments )
14
+ }
15
+ } ) ( process . stdout . write ) ;
16
+
17
+ process . stderr . write = ( function ( write ) {
18
+ return function ( string , encoding , fd ) {
19
+ string = string . replace ( / e m b e r - c l i / g, 'angular-cli' ) ;
20
+ string = string . replace ( / e m b e r / g, 'ng' ) ;
21
+ write . apply ( process . stdout , arguments )
22
+ }
23
+ } ) ( process . stderr . write ) ;
24
+
25
+ options . cli = {
26
+ name : 'ng' ,
27
+ root : path . join ( __dirname , '..' , '..' ) ,
28
+ npmPackage : 'angular-cli'
29
+ } ;
30
+
31
+ return cli ( options ) ;
12
32
} ;
0 commit comments