-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I tried using both binding and node-pre-gyp include patterns and both are not working even though the documentation states that they should be supported.
The setup I'm trying to get working is main project "foo" with a dependency on "bar" where the native binaries are in "bar".
What I tried:
- Using
bindingsin "bar" with the file located atlib/binding/node-v72-darwin-x64/bindings.node. - Using
bindingsin "bar" with the file located atbuild/Release/bindings.node. - Using
node-pre-gyppattern in "bar" with the file located atlib/binding/node-v72-darwin-x64/bindings.nodeand callingrequire(`../../../lib/binding/node-v${process.versions.modules}-${process.platform}-${process.arch}/bindings.node`).
Interestingly, for the last case if I call instead require(`../../../lib/binding/node-v72-${os.platform()}-${os.arch()}/bindings.node`) it works properly. It looks like os is supported for dynamic paths but not process? I wonder if the same issue applies to bindings which would explain why it also doesn't work.
Metadata
Metadata
Assignees
Labels
No labels