Skip to content

Commit 64ed3d8

Browse files
committed
Update package.json for N-API build
1 parent ff0f2ab commit 64ed3d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/bindings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const bindings = require('../build/Release/canvas.node')
3+
const bindings = require('../build/Release/napi-v7/canvas.node')
44

55
module.exports = bindings
66

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
},
3838
"binary": {
3939
"module_name": "canvas",
40-
"module_path": "build/Release",
40+
"module_path": "build/Release/napi-v{napi_build_version}",
4141
"host": "https://github.com/Automattic/node-canvas/releases/download/",
4242
"remote_path": "v{version}",
43-
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"
43+
"napi_versions": [7],
44+
"package_name": "{module_name}-v{napi_build_version}-{platform}-{libc}-{arch}.tar.gz"
4445
},
4546
"files": [
4647
"binding.gyp",

0 commit comments

Comments
 (0)