File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 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 ) ;
26var events = require ( 'events' )
37var util = require ( 'util' )
48
You can’t perform that action at this time.
0 commit comments