File tree 1 file changed +11
-2
lines changed
packages/angular/cli/lib/cli
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
-
8
+ import { terminal } from '@angular-devkit/core' ;
9
9
import { createConsoleLogger } from '@angular-devkit/core/node' ;
10
10
import { runCommand } from '../../models/command-runner' ;
11
11
import { getWorkspaceRaw } from '../../utilities/config' ;
12
12
import { getWorkspaceDetails } from '../../utilities/project' ;
13
13
14
14
15
15
export default async function ( options : { testing ?: boolean , cliArgs : string [ ] } ) {
16
- const logger = createConsoleLogger ( ) ;
16
+ const logger = createConsoleLogger (
17
+ false ,
18
+ process . stdout ,
19
+ process . stderr ,
20
+ {
21
+ warn : s => terminal . bold ( terminal . yellow ( s ) ) ,
22
+ error : s => terminal . bold ( terminal . red ( s ) ) ,
23
+ fatal : s => terminal . bold ( terminal . red ( s ) ) ,
24
+ } ,
25
+ ) ;
17
26
18
27
let projectDetails = getWorkspaceDetails ( ) ;
19
28
if ( projectDetails === null ) {
You can’t perform that action at this time.
0 commit comments