Skip to content

Commit

Permalink
fix: use require('nan') to retrieve include-path
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulthink authored Apr 13, 2021
1 parent f436497 commit f9c245c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'target_name': 'rpi_ws281x',
'sources': ['./src/rpi-ws281x.cc'],
'dependencies': ['rpi_libws2811'],
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"],
'include_dirs': ["<!(node -e \"require('nan')\")"],
'defines': ['NAPI_DISABLE_CPP_EXCEPTIONS'],
},

Expand Down

0 comments on commit f9c245c

Please sign in to comment.