From 25fbac52c8f2d63468992d7c9f110aff6ef58dfc Mon Sep 17 00:00:00 2001 From: Zach Bjornson Date: Thu, 28 Dec 2023 17:10:26 -0800 Subject: [PATCH] switch to prebuild-install --- CHANGELOG.md | 1 + package.json | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de18c3bef..73ad0b00b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ This release notably changes to using N-API. 🎉 * Dropped support for Node.js 16.x and below. ### Changed * Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies +* Change from node-pre-gyp to prebuild-install * Defer the initialization of the `op` variable to the `default` switch case to avoid a compiler warning. (#2229) * Use a `default` switch case with a null statement if some enum values aren't suppsed to be handled, this avoids a compiler warning. (#2229) * Migrate from librsvg's deprecated `rsvg_handle_get_dimensions()` and `rsvg_handle_render_cairo()` functions to the new `rsvg_handle_get_intrinsic_size_in_pixels()` and `rsvg_handle_render_document()` respectively. (#2229) diff --git a/package.json b/package.json index d9c6526d2..c4e340972 100644 --- a/package.json +++ b/package.json @@ -32,16 +32,9 @@ "test-server": "node test/server.js", "generate-wpt": "node ./test/wpt/generate.js", "test-wpt": "mocha test/wpt/generated/*.js", - "install": "node-pre-gyp install --fallback-to-build --update-binary", + "install": "prebuild-install -r napi || node-gyp rebuild", "tsd": "tsd" }, - "binary": { - "module_name": "canvas", - "module_path": "build/Release", - "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" - }, "files": [ "binding.gyp", "browser.js", @@ -52,8 +45,8 @@ "util/" ], "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.0", "node-addon-api": "^7.0.0", + "prebuild-install": "^7.1.1", "simple-get": "^3.0.3" }, "devDependencies": {