diff --git a/.gitignore b/.gitignore index d69397b..728c7d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules/ -build/ +build*/ lib/binding/ package-lock.json npm-debug.log \ No newline at end of file diff --git a/binding.gyp b/binding.gyp index 18a7a0a..173f061 100644 --- a/binding.gyp +++ b/binding.gyp @@ -60,6 +60,7 @@ ], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', + 'NAPI_VERSION=<(napi_build_version)', ], }, { diff --git a/package.json b/package.json index f1bf8e2..a663da4 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", @@ -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] } }