Skip to content

Commit a282555

Browse files
committed
Reverts bindings lookup changes.
1 parent 7e89422 commit a282555

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
3737
},
3838
"binary": {
3939
"module_name": "usb_bindings",
40-
"module_path": "build/bindings",
40+
"module_path": "./src/binding",
4141
"host": "https://github.com/tessel/node-usb/releases/download/",
4242
"remote_path": "{version}"
4343
},
4444
"dependencies": {
45-
"bindings": "^1.2.1",
4645
"nan": "^2.4.0",
4746
"node-pre-gyp": "^0.6.30"
4847
},

usb.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
var usb = exports = module.exports = require('bindings')('usb_bindings.node');
1+
var binary = require('node-pre-gyp');
2+
var path = require('path');
3+
var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));
4+
5+
var usb = exports = module.exports = require(binding_path);
26
var events = require('events')
37
var util = require('util')
48

0 commit comments

Comments
 (0)