File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
packages/@tailwindcss-upgrade/src Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,13 @@ async function run() {
237237 }
238238 }
239239
240+ info ( 'Updating dependencies…' )
241+ try {
242+ // Upgrade Tailwind CSS
243+ await pkg ( base ) . add ( [ 'tailwindcss@latest' ] )
244+ success ( `Updated package: ${ highlight ( 'tailwindcss' ) } ` , { prefix : '↳ ' } )
245+ } catch { }
246+
240247 let tailwindRootStylesheets = stylesheets . filter ( ( sheet ) => sheet . isTailwindRoot && sheet . file )
241248
242249 // Migrate source files
@@ -313,12 +320,6 @@ async function run() {
313320 await migratePrettierPlugin ( base )
314321 }
315322
316- try {
317- // Upgrade Tailwind CSS
318- await pkg ( base ) . add ( [ 'tailwindcss@latest' ] )
319- success ( `Updated package: ${ highlight ( 'tailwindcss' ) } ` , { prefix : '↳ ' } )
320- } catch { }
321-
322323 // Run all cleanup functions because we completed the migration
323324 await Promise . allSettled ( cleanup . map ( ( fn ) => fn ( ) ) )
324325
You can’t perform that action at this time.
0 commit comments