Skip to content

Commit befcdb2

Browse files
committed
fix: import path
1 parent 13b4cb3 commit befcdb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { find } = require('node-pre-gyp');
22
const { resolve, join } = require('path');
33

4-
const bindingPath = find(resolve(join(__dirname, './package.json')));
4+
const bindingPath = find(resolve(join(__dirname, '..', 'package.json')));
55
const binding = require(bindingPath);
66

77
module.exports = binding;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"binary": {
2929
"module_name": "opus",
3030
"module_path": "./prebuild/{node_abi}-{platform}-{arch}/",
31-
"remote_path": "{version}",
31+
"remote_path": "v{version}",
3232
"host": "https://github.com/discordjs/opus/releases/download/"
3333
}
3434
}

0 commit comments

Comments
 (0)