Commit b0332e78 by Jim Schlight

Update package.json for N-API builds

parent 5fc6fed8
...@@ -24,4 +24,5 @@ test/nw/app.nw ...@@ -24,4 +24,5 @@ test/nw/app.nw
local.env local.env
.mason .mason
.eslintrc.js .eslintrc.js
setup.sh setup.sh
\ No newline at end of file /build-tmp-napi-v3
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"src/node_sqlite3.cc", "src/node_sqlite3.cc",
"src/statement.cc" "src/statement.cc"
], ],
"defines": [ "NAPI_VERSION=3", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ] "defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ]
}, },
{ {
"target_name": "action_after_build", "target_name": "action_after_build",
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"destination": "<(module_path)" "destination": "<(module_path)"
} }
], ],
"defines": [ "NAPI_VERSION=3", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ] "defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ]
} }
] ]
} }
...@@ -9,10 +9,13 @@ ...@@ -9,10 +9,13 @@
}, },
"binary": { "binary": {
"module_name": "node_sqlite3", "module_name": "node_sqlite3",
"module_path": "./lib/binding/{node_abi}-{platform}-{arch}", "module_path": "./lib/binding/napi-v{napi_build_version}-{platform}-{arch}",
"host": "https://mapbox-node-binary.s3.amazonaws.com", "host": "https://mapbox-node-binary.s3.amazonaws.com",
"remote_path": "./{name}/v{version}/{toolset}/", "remote_path": "./{name}/v{version}/{toolset}/",
"package_name": "{node_abi}-{platform}-{arch}.tar.gz" "package_name": "napi-v{napi_build_version}-{platform}-{arch}.tar.gz",
"napi_versions": [
3
]
}, },
"contributors": [ "contributors": [
"Konstantin Käfer <mail@kkaefer.com>", "Konstantin Käfer <mail@kkaefer.com>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment