File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11var { bold, underline, yellow } = require ( 'colorette' ) ;
22var path = require ( 'path' ) ;
3- var symbols = require ( 'log-symbols' ) ;
43var sortBy = require ( 'lodash.sortby' ) ;
54var util = require ( './util' ) ;
65
6+ var supportsLargeCharset = process . platform !== 'win32' || process . env . CI || process . env . TERM === 'xterm-256color' ;
7+ var warningSymbol = supportsLargeCharset ? '⚠' : '!!' ;
8+
79module . exports = function ( opts ) {
810 var options = opts || { } ;
911 var sortByPosition = ( typeof options . sortByPosition !== 'undefined' ) ? options . sortByPosition : true ;
@@ -64,7 +66,7 @@ module.exports = function(opts) {
6466 }
6567
6668 if ( ! options . noIcon && message . type === 'warning' ) {
67- str += yellow ( symbols . warning + ' ' ) ;
69+ str += yellow ( warningSymbol + ' ' ) ;
6870 }
6971
7072 str += message . text ;
Original file line number Diff line number Diff line change 3434 "eslint" : " 7.10.0" ,
3535 "less" : " 3.12.2" ,
3636 "lodash" : " ^4.17.20" ,
37+ "log-symbols" : " ^4.0.0" ,
3738 "postcss" : " ^8.1.0" ,
3839 "source-map" : " 0.7.3" ,
3940 "strip-color" : " ^0.1.0" ,
4647 "lodash.forown" : " ^4.4.0" ,
4748 "lodash.get" : " ^4.4.2" ,
4849 "lodash.groupby" : " ^4.6.0" ,
49- "lodash.sortby" : " ^4.7.0" ,
50- "log-symbols" : " ^4.0.0"
50+ "lodash.sortby" : " ^4.7.0"
5151 }
5252}
You can’t perform that action at this time.
0 commit comments