mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
This PR makes sure the `migrateImport` codemod is properly registered so that it runs as part of the upgrade process. ## Test plan This PR adds a new `v3` playground with an `upgrade` script that you can use to run the upgrade from the local package. When you add a non-prefixed `@import` to the v3 example, the paths are now properly updated with no errors logged: https://github.com/user-attachments/assets/85949bbb-756b-4ee2-8ac0-234fe1b2ca39 --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com> Co-authored-by: Philipp Spiess <hello@philippspiess.com>
27 lines
582 B
JSON
27 lines
582 B
JSON
{
|
|
"name": "v3-playground",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"upgrade": "node scripts/upgrade.mjs"
|
|
},
|
|
"dependencies": {
|
|
"next": "14.1.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"tailwindcss": "^3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.8",
|
|
"@types/react": "^18.3.9",
|
|
"@types/react-dom": "^18.3.1",
|
|
"autoprefixer": "^10.4.20",
|
|
"eslint": "^9.11.1",
|
|
"eslint-config-next": "^14.2.5",
|
|
"typescript": "^5.5.4"
|
|
}
|
|
}
|