@@ -54,14 +54,23 @@ function futureFlagsAvailable(config) {
54
54
55
55
export function issueFlagNotices ( config ) {
56
56
const log = {
57
- info ( message ) {
58
- console . log ( chalk . bold . cyan ( 'info' ) , '-' , message )
57
+ info ( messages ) {
58
+ console . log ( '' )
59
+ messages . forEach ( message => {
60
+ console . log ( chalk . bold . cyan ( 'info' ) , '-' , message )
61
+ } )
59
62
} ,
60
- warn ( message ) {
61
- console . log ( chalk . bold . yellow ( 'warn' ) , '-' , message )
63
+ warn ( messages ) {
64
+ console . log ( '' )
65
+ messages . forEach ( message => {
66
+ console . log ( chalk . bold . yellow ( 'warn' ) , '-' , message )
67
+ } )
62
68
} ,
63
- risk ( message ) {
64
- console . log ( chalk . bold . magenta ( 'risk' ) , '-' , message )
69
+ risk ( messages ) {
70
+ console . log ( '' )
71
+ messages . forEach ( message => {
72
+ console . log ( chalk . bold . magenta ( 'risk' ) , '-' , message )
73
+ } )
65
74
} ,
66
75
}
67
76
@@ -70,33 +79,33 @@ export function issueFlagNotices(config) {
70
79
. map ( s => chalk . cyan ( s ) )
71
80
. join ( ', ' )
72
81
73
- log . info ( `\nYou have opted-in to future-facing breaking changes: ${ changes } ` )
74
- log . info (
75
- 'These changes are stable and will be the default behavior in the next major version of Tailwind.'
76
- )
82
+ log . info ( [
83
+ `You have opted-in to future-facing breaking changes: ${ changes } ` ,
84
+ 'These changes are stable and will be the default behavior in the next major version of Tailwind.' ,
85
+ ] )
77
86
}
78
87
79
88
if ( experimentalFlagsEnabled ( config ) . length > 0 ) {
80
89
const changes = experimentalFlagsEnabled ( config )
81
90
. map ( s => chalk . yellow ( s ) )
82
91
. join ( ', ' )
83
92
84
- log . warn ( `\nYou have enabled experimental features: ${ changes } ` )
85
- log . warn (
86
- 'Experimental features are not covered by semver, may introduce breaking changes, and can change at any time.'
87
- )
93
+ log . warn ( [
94
+ `You have enabled experimental features: ${ changes } ` ,
95
+ 'Experimental features are not covered by semver, may introduce breaking changes, and can change at any time.' ,
96
+ ] )
88
97
}
89
98
90
99
if ( futureFlagsAvailable ( config ) . length > 0 ) {
91
100
const changes = futureFlagsAvailable ( config )
92
101
. map ( s => chalk . magenta ( s ) )
93
102
. join ( ', ' )
94
103
95
- log . risk ( `\nThere are upcoming breaking changes: ${ changes } ` )
96
- log . risk (
97
- 'We highly recommend opting-in to these changes now to simplify upgrading Tailwind in the future.'
98
- )
99
- log . risk ( 'https://tailwindcss.com/docs/upcoming-changes' )
104
+ log . risk ( [
105
+ `There are upcoming breaking changes: ${ changes } ` ,
106
+ 'We highly recommend opting-in to these changes now to simplify upgrading Tailwind in the future.' ,
107
+ 'https://tailwindcss.com/docs/upcoming-changes' ,
108
+ ] )
100
109
}
101
110
}
102
111
0 commit comments