From 64ed3d82801be1ba89462a83bb2aedf4eb9d1aed Mon Sep 17 00:00:00 2001 From: Zach Bjornson Date: Thu, 28 Dec 2023 15:12:14 -0800 Subject: [PATCH] Update package.json for N-API build --- lib/bindings.js | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/bindings.js b/lib/bindings.js index 40cef3c69..876da3087 100644 --- a/lib/bindings.js +++ b/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 diff --git a/package.json b/package.json index d9c6526d2..0658910a2 100644 --- a/package.json +++ b/package.json @@ -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",