Get the path to nan relatively

Under npm3 the `realm` and `nan` modules might end up as siblings so the best way to get the path to `nan` is to require it from within the `realm` module. The `nan` module prints its path so it can be captured by an external build system like in this patch.
This commit is contained in:
Yavor Georgiev 2016-07-21 17:39:03 +02:00 committed by GitHub
parent 47c1c2d400
commit 6a6ed5a214
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@
"../object-store/src/parser",
"../object-store/external/pegtl",
"../../core-node/include",
"../../node_modules/nan"
"<!(node -e 'require(\"nan\")')"
],
"library_dirs": [
"$(srcdir)/../../core-node"