fix: handle deprecated @astrojs/tailwind integration and update versi… #14781
+33
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix bunx @astrojs/upgrade failing on projects with @astrojs/tailwind
Changes
bunx @astrojs/upgradefailing on projects with@astrojs/tailwindintegration@astrojs/tailwindto v6.0.0@astrojs/tailwindusersBefore
bunx @astrojs/upgradeon projects with@astrojs/tailwindwould fail with error: "migration tool can only be run on v3 project"npx @astrojs/upgradeworked fine, creating inconsistent behavior between package managersAfter
bunxandnpxversions of@astrojs/upgradework consistently@astrojs/tailwind@tailwindcss/vitepluginTesting
@astrojs/tailwindv5.1.0 and verified fix works with both:node @astrojs/upgrade --dry-run(npm equivalent)bun run @astrojs/upgrade --dry-run(bun equivalent)No automated tests added as this is a CLI tool fix requiring package manager interaction that's difficult to mock in unit tests. The fix is isolated to the upgrade package's dependency resolution logic.
Docs
No documentation changes needed - this is a bug fix that restores expected behavior. The upgrade tool already had built-in help and error messaging, we've just improved the handling of a specific deprecated package.
The fix automatically provides users with the correct migration documentation link: https://tailwindcss.com/docs/installation/framework-guides/astro
Changeset needed: Yes, this is a patch fix for
@astrojs/upgradepackage.Run
pnpm changesetand select:@astrojs/upgrade(patch)fix: #14778
@copilot