Skip to content

Commit

Permalink
config: Use N-API versions for build
Browse files Browse the repository at this point in the history
Signed-off-by: Xu Meng <[email protected]>
  • Loading branch information
dmabupt committed May 28, 2019
1 parent 7c74ae0 commit 663f8aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
build/
build*/
lib/binding/
package-lock.json
npm-debug.log
1 change: 1 addition & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
],
'defines': [
'NAPI_DISABLE_CPP_EXCEPTIONS',
'NAPI_VERSION=<(napi_build_version)',
],
},
{
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idb-connector",
"version": "1.1.10",
"version": "1.2.0",
"description": "A Node.js DB2 driver for IBM i",
"os": [
"aix"
Expand Down Expand Up @@ -43,8 +43,8 @@
}
],
"dependencies": {
"node-addon-api": "^1.2.0",
"node-pre-gyp": "^0.11.0"
"node-addon-api": "^1.6.3",
"node-pre-gyp": "^0.13.0"
},
"devDependencies": {
"bindings": "^1.3.0",
Expand All @@ -59,9 +59,10 @@
],
"binary": {
"module_name": "db2ia",
"module_path": "./lib/binding/{configuration}/{node_abi}-ibmi-{arch}/",
"module_path": "./lib/binding/{configuration}/napi{napi_build_version}-ibmi-{arch}/",
"remote_path": "./{version}/",
"package_name": "{module_name}-v{version}-{node_abi}-ibmi-{arch}.tar.gz",
"host": "https://github.com/IBM/nodejs-idb-connector/releases/download"
"package_name": "{module_name}-v{version}-napi{napi_build_version}-ibmi-{arch}.tar.gz",
"host": "https://github.com/IBM/nodejs-idb-connector/releases/download",
"napi_versions": [3]
}
}

0 comments on commit 663f8aa

Please sign in to comment.