Skip to content

Commit cf99d92

Browse files
committed
upgrade tailwindcss after we migrated the stylesheets
1 parent f2ae0f5 commit cf99d92

File tree

1 file changed

+7
-6
lines changed
  • packages/@tailwindcss-upgrade/src

1 file changed

+7
-6
lines changed

packages/@tailwindcss-upgrade/src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)