Skip to content

Commit

Permalink
Add node-pre-gyp path to search paths
Browse files Browse the repository at this point in the history
Fixes #11.
Closes #32.

Squashed commit of the following:

commit d58451e
Author: Bryan Knight <[email protected]>
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 <[email protected]>
  • Loading branch information
TooTallNate and Bryan Knight committed Jan 23, 2019
1 parent e18d8f0 commit 68dae57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var fs = require('fs')
, compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled'
, platform: process.platform
, arch: process.arch
, nodePreGyp: 'node-v' + process.versions.modules + '-' + process.platform + '-' + process.arch
, version: process.versions.node
, bindings: 'bindings.node'
, try: [
Expand All @@ -37,6 +38,8 @@ var fs = require('fs')
, [ 'module_root', 'addon-build', 'release', 'install-root', 'bindings' ]
, [ 'module_root', 'addon-build', 'debug', 'install-root', 'bindings' ]
, [ 'module_root', 'addon-build', 'default', 'install-root', 'bindings' ]
// node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
, [ 'module_root', 'lib', 'binding', 'nodePreGyp', 'bindings' ]
]
}

Expand Down

0 comments on commit 68dae57

Please sign in to comment.