Skip to content

Commit 25fbac5

Browse files
committed
switch to prebuild-install
1 parent ff0f2ab commit 25fbac5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This release notably changes to using N-API. 🎉
2020
* Dropped support for Node.js 16.x and below.
2121
### Changed
2222
* Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies
23+
* Change from node-pre-gyp to prebuild-install
2324
* Defer the initialization of the `op` variable to the `default` switch case to avoid a compiler warning. (#2229)
2425
* 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)
2526
* 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)

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,9 @@
3232
"test-server": "node test/server.js",
3333
"generate-wpt": "node ./test/wpt/generate.js",
3434
"test-wpt": "mocha test/wpt/generated/*.js",
35-
"install": "node-pre-gyp install --fallback-to-build --update-binary",
35+
"install": "prebuild-install -r napi || node-gyp rebuild",
3636
"tsd": "tsd"
3737
},
38-
"binary": {
39-
"module_name": "canvas",
40-
"module_path": "build/Release",
41-
"host": "https://github.com/Automattic/node-canvas/releases/download/",
42-
"remote_path": "v{version}",
43-
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{libc}-{arch}.tar.gz"
44-
},
4538
"files": [
4639
"binding.gyp",
4740
"browser.js",
@@ -52,8 +45,8 @@
5245
"util/"
5346
],
5447
"dependencies": {
55-
"@mapbox/node-pre-gyp": "^1.0.0",
5648
"node-addon-api": "^7.0.0",
49+
"prebuild-install": "^7.1.1",
5750
"simple-get": "^3.0.3"
5851
},
5952
"devDependencies": {

0 commit comments

Comments
 (0)