Skip to content

Commit

Permalink
fix(bin): convert to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Sep 24, 2024
1 parent 5f0615f commit eca702e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/smee.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env node

const { program } = require('commander')
const { version } = require('../package.json')
import { program } from 'commander'
import { readFile } from 'node:fs/promises'
import Client from '../index.js'

const Client = require('..')
const { version } = JSON.parse(await readFile(new URL('../package.json', import.meta.url)))

program
.version(version, '-v, --version')
Expand Down

0 comments on commit eca702e

Please sign in to comment.