Skip to content

Commit 83bf845

Browse files
committed
do not require Tailwind CSS v3 projects anymore
1 parent e326b54 commit 83bf845

File tree

1 file changed

+0
-10
lines changed
  • packages/@tailwindcss-upgrade/src

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { Stylesheet } from './stylesheet'
2020
import { args, type Arg } from './utils/args'
2121
import { isRepoDirty } from './utils/git'
2222
import { hoistStaticGlobParts } from './utils/hoist-static-glob-parts'
23-
import { getPackageVersion } from './utils/package-version'
2423
import { pkg } from './utils/packages'
2524
import { eprintln, error, header, highlight, info, relative, success } from './utils/renderer'
2625

@@ -59,15 +58,6 @@ async function run() {
5958
}
6059
}
6160

62-
// Require an installed `tailwindcss` version < 4
63-
let tailwindVersion = await getPackageVersion('tailwindcss', base)
64-
if (tailwindVersion && Number(tailwindVersion.split('.')[0]) !== 3) {
65-
error(
66-
`Tailwind CSS v${tailwindVersion} found. The migration tool can only be run on v3 projects.`,
67-
)
68-
process.exit(1)
69-
}
70-
7161
{
7262
// Stylesheet migrations
7363

0 commit comments

Comments
 (0)