Skip to content

Commit 38afd8f

Browse files
committed
fix: skip Node.js version check in Bun
1 parent 665e5ac commit 38afd8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { yellow } from 'ansis'
55
import lt from 'semver/functions/lt.js'
66
import { runCLI } from './cli.ts'
77

8-
if (lt(process.version, '22.18.0')) {
8+
if (!process.versions.bun && lt(process.version, '22.18.0')) {
99
console.warn(
10-
yellow`[tsdown] Node.js ${process.version} is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js 22.18.0 or later.`,
10+
yellow`[tsdown] Node.js ${process.version} is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js v22.18.0 or later.`,
1111
)
1212
}
1313

0 commit comments

Comments
 (0)