Skip to content

Commit

Permalink
add bun support
Browse files Browse the repository at this point in the history
  • Loading branch information
eeue56 committed Oct 1, 2023
1 parent 9b587f0 commit 17f8ff2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ export async function main(): Promise<number> {
}
}

if (require.main === module) {
main();
if (process.versions.bun) {
if (require.main === process.mainModule) {
main();
}
} else {
if (require.main === module) {
main();
}
}

0 comments on commit 17f8ff2

Please sign in to comment.