Skip to content

Commit

Permalink
switch to prebuild-install
Browse files Browse the repository at this point in the history
  • Loading branch information
zbjornson committed Dec 29, 2023
1 parent ff0f2ab commit 25fbac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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)
Expand Down
11 changes: 2 additions & 9 deletions package.json
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 25fbac5

Please sign in to comment.