Skip to content

Commit

Permalink
allow runme to be run in CJS projects
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Aug 17, 2023
1 parent 0709313 commit cff182d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/runme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node
import { runme } from '../dist/cli.js'

runme()
(async () => {
const { runme } = await import('../dist/cli.js')
return runme()
})()

0 comments on commit cff182d

Please sign in to comment.