Skip to content

Commit

Permalink
fix: handle really old bun versions as well (actually work)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-run committed Jan 26, 2024
1 parent fffef65 commit 489172f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (
}
}

if (semver === null || !semver.satisfies(Bun.version, '>= 1.0.25')) {
if (!semver || !semver.satisfies(Bun.version, '>= 1.0.25')) {
log(chalk.red('Oh no!!!!!'))
log(`This version of ${chalk.blue('tsm')} requires at least ${chalk.green('bun')} version ${chalk.green('1.0.25')}`)
log(`Please run ${chalk.green('bun upgrade')} to upgrade`)
Expand Down

0 comments on commit 489172f

Please sign in to comment.