tailwindcss/packages/@tailwindcss-upgrade/src
Robin Malfait 57f87be440
Resolve imports from CSS file (#15010)
This PR adds an improvement to the upgrade tool to make sure that if you
pass a single CSS file, that the upgrade tool resolves all the imports
in that file and processes them as well.


Test plan:
---

Created a project where `index.css` imports `other.css`. Another
`leave-me-alone.css` is created to proof that this file is _not_
changed. Running the upgrade guide using `index.css` also migrates
`other.css` but not `leave-me-alone.css`.

Here is a video so you don't have to manually create it:



https://github.com/user-attachments/assets/20decf77-77d2-4a7c-8ff1-accb1c77f8c1
2024-11-15 22:06:52 +01:00
..
codemods Ensure clients pin the tailwindcss version (#15011) 2024-11-15 17:18:48 +01:00
commands/help Add initial codemod tooling (#14434) 2024-09-18 16:45:43 +02:00
template Ensure clients pin the tailwindcss version (#15011) 2024-11-15 17:18:48 +01:00
utils Fix glob pattern hoisting on Windows (#14904) 2024-11-07 15:31:06 -05:00
index.test.ts Remove input borders by default (#14929) 2024-11-08 15:29:41 -05:00
index.ts Resolve imports from CSS file (#15010) 2024-11-15 22:06:52 +01:00
migrate-js-config.ts Ensure clients pin the tailwindcss version (#15011) 2024-11-15 17:18:48 +01:00
migrate-postcss.ts Install @tailwindcss/postcss next to tailwindcss (#14830) 2024-10-30 15:32:24 -04:00
migrate-prettier.ts Install @tailwindcss/postcss next to tailwindcss (#14830) 2024-10-30 15:32:24 -04:00
migrate.ts Resolve imports from CSS file (#15010) 2024-11-15 22:06:52 +01:00
stylesheet.ts Resolve imports from CSS file (#15010) 2024-11-15 22:06:52 +01:00