Skip to content

Commit a6d3ee7

Browse files
author
Diego Rodriguez Baquero
committed
fix: webtorrent version resolve
1 parent 491e927 commit a6d3ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { hideBin } from 'yargs/helpers'
2020
import open from 'open'
2121

2222
const { version: webTorrentCliVersion } = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url)))
23-
const { version: webTorrentVersion } = JSON.parse(fs.readFileSync(new URL('../node_modules/webtorrent/package.json', import.meta.url)))
23+
const webTorrentVersion = WebTorrent.VERSION
2424

2525
const yargs = Yargs()
2626

0 commit comments

Comments
 (0)