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() {
237
237
}
238
238
}
239
239
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
+
240
247
let tailwindRootStylesheets = stylesheets . filter ( ( sheet ) => sheet . isTailwindRoot && sheet . file )
241
248
242
249
// Migrate source files
@@ -313,12 +320,6 @@ async function run() {
313
320
await migratePrettierPlugin ( base )
314
321
}
315
322
316
- try {
317
- // Upgrade Tailwind CSS
318
- await pkg ( base ) . add ( [ 'tailwindcss@latest' ] )
319
- success ( `Updated package: ${ highlight ( 'tailwindcss' ) } ` , { prefix : '↳ ' } )
320
- } catch { }
321
-
322
323
// Run all cleanup functions because we completed the migration
323
324
await Promise . allSettled ( cleanup . map ( ( fn ) => fn ( ) ) )
324
325
You can’t perform that action at this time.
0 commit comments