Skip to content

Commit 9b73663

Browse files
committed
build success.
1 parent d8ac31f commit 9b73663

File tree

13 files changed

+334
-352
lines changed

13 files changed

+334
-352
lines changed

binding.gyp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@
8787
"3rdlibs/lua-cjson/strbuf.c"
8888
],
8989
"include_dirs": [
90-
"<!(node -e \"require('nan')\")"
91-
]
90+
"<!@(node -p \"require('node-addon-api').include\")"
91+
],
92+
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
9293
}
9394
]
9495
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"author": "smallwhite",
2424
"license": "ISC",
2525
"dependencies": {
26-
"nan": "^2.14.2"
26+
"node-addon-api": "^3.1.0"
2727
},
2828
"devDependencies": {
2929
"co": "4.6.0"

0 commit comments

Comments
 (0)