@@ -54,14 +54,23 @@ function futureFlagsAvailable(config) {
5454
5555export function issueFlagNotices ( config ) {
5656 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+ } )
5962 } ,
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+ } )
6268 } ,
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+ } )
6574 } ,
6675 }
6776
@@ -70,33 +79,33 @@ export function issueFlagNotices(config) {
7079 . map ( s => chalk . cyan ( s ) )
7180 . join ( ', ' )
7281
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+ ] )
7786 }
7887
7988 if ( experimentalFlagsEnabled ( config ) . length > 0 ) {
8089 const changes = experimentalFlagsEnabled ( config )
8190 . map ( s => chalk . yellow ( s ) )
8291 . join ( ', ' )
8392
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+ ] )
8897 }
8998
9099 if ( futureFlagsAvailable ( config ) . length > 0 ) {
91100 const changes = futureFlagsAvailable ( config )
92101 . map ( s => chalk . magenta ( s ) )
93102 . join ( ', ' )
94103
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+ ] )
100109 }
101110}
102111
0 commit comments