Skip to content

Commit

Permalink
Update package.json for N-API build
Browse files Browse the repository at this point in the history
  • Loading branch information
zbjornson committed Dec 28, 2023
1 parent ff0f2ab commit 64ed3d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bindings.js
@@ -1,6 +1,6 @@
'use strict'

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

module.exports = bindings

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -37,10 +37,11 @@
},
"binary": {
"module_name": "canvas",
"module_path": "build/Release",
"module_path": "build/Release/napi-v{napi_build_version}",
"host": "https://github.com/Automattic/node-canvas/releases/download/",
"remote_path": "v{version}",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"
"napi_versions": [7],
"package_name": "{module_name}-v{napi_build_version}-{platform}-{libc}-{arch}.tar.gz"
},
"files": [
"binding.gyp",
Expand Down

0 comments on commit 64ed3d8

Please sign in to comment.