File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/angular-cli/lib/cli Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33// This file hooks up on require calls to transpile TypeScript.
44const cli = require ( 'ember-cli/lib/cli' ) ;
5+ const UI = require ( 'ember-cli/lib/ui' ) ;
56const path = require ( 'path' ) ;
67
78Error . stackTraceLimit = Infinity ;
89
910module . exports = function ( options ) {
11+
12+ // patch UI to not print Ember-CLI warnings (which don't apply to Angular-CLI)
13+ UI . prototype . writeWarnLine = function ( ) { }
14+
1015 const oldStdoutWrite = process . stdout . write ;
1116 process . stdout . write = function ( line ) {
1217 line = line . toString ( ) ;
13- if ( line . match ( / v e r s i o n : | W A R N I N G : / ) ) {
14- return ;
15- }
1618 if ( line . match ( / e m b e r - c l i - ( i n j e c t - ) ? l i v e - r e l o a d / ) ) {
1719 // don't replace 'ember-cli-live-reload' on ng init diffs
1820 return oldStdoutWrite . apply ( process . stdout , arguments ) ;
@@ -38,8 +40,6 @@ module.exports = function(options) {
3840
3941 // ensure the environemnt variable for dynamic paths
4042 process . env . PWD = process . env . PWD || process . cwd ( ) ;
41-
42-
4343 process . env . CLI_ROOT = process . env . CLI_ROOT || path . resolve ( __dirname , '..' , '..' ) ;
4444
4545 return cli ( options ) ;
You can’t perform that action at this time.
0 commit comments