Skip to content

Commit 68dae57

Browse files
TooTallNateBryan Knight
and
Bryan Knight
committedJan 23, 2019
Add node-pre-gyp path to search paths
Fixes #11. Closes #32. Squashed commit of the following: commit d58451e Author: Bryan Knight <bryan.knight@MLDUR1611403.local> Date: Thu Mar 2 14:03:50 2017 -0500 Add node-pre-gyp path to search paths The node-pre-gyp docs have the binary go into `./lib/binding/{node_abi}-{platform}-{arch}` Co-authored-by: Bryan Knight <bryan.knight@tanium.com>
1 parent e18d8f0 commit 68dae57

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎bindings.js

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var fs = require('fs')
1515
, compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled'
1616
, platform: process.platform
1717
, arch: process.arch
18+
, nodePreGyp: 'node-v' + process.versions.modules + '-' + process.platform + '-' + process.arch
1819
, version: process.versions.node
1920
, bindings: 'bindings.node'
2021
, try: [
@@ -37,6 +38,8 @@ var fs = require('fs')
3738
, [ 'module_root', 'addon-build', 'release', 'install-root', 'bindings' ]
3839
, [ 'module_root', 'addon-build', 'debug', 'install-root', 'bindings' ]
3940
, [ 'module_root', 'addon-build', 'default', 'install-root', 'bindings' ]
41+
// node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
42+
, [ 'module_root', 'lib', 'binding', 'nodePreGyp', 'bindings' ]
4043
]
4144
}
4245

0 commit comments

Comments
 (0)
Please sign in to comment.