This repository was archived by the owner on Jul 21, 2022. It is now read-only.
File tree 1 file changed +5
-5
lines changed
packages/angular-cli/lib/cli
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// This file hooks up on require calls to transpile TypeScript.
4
4
const cli = require ( 'ember-cli/lib/cli' ) ;
5
+ const UI = require ( 'ember-cli/lib/ui' ) ;
5
6
const path = require ( 'path' ) ;
6
7
7
8
Error . stackTraceLimit = Infinity ;
8
9
9
10
module . 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
+
10
15
const oldStdoutWrite = process . stdout . write ;
11
16
process . stdout . write = function ( line ) {
12
17
line = line . toString ( ) ;
13
- if ( line . match ( / v e r s i o n : | W A R N I N G : / ) ) {
14
- return ;
15
- }
16
18
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 / ) ) {
17
19
// don't replace 'ember-cli-live-reload' on ng init diffs
18
20
return oldStdoutWrite . apply ( process . stdout , arguments ) ;
@@ -38,8 +40,6 @@ module.exports = function(options) {
38
40
39
41
// ensure the environemnt variable for dynamic paths
40
42
process . env . PWD = process . env . PWD || process . cwd ( ) ;
41
-
42
-
43
43
process . env . CLI_ROOT = process . env . CLI_ROOT || path . resolve ( __dirname , '..' , '..' ) ;
44
44
45
45
return cli ( options ) ;
You can’t perform that action at this time.
0 commit comments