Skip to content

Conversation

inkedsquid
Copy link

@inkedsquid inkedsquid commented Sep 16, 2025

What does this PR do ?

This PR adds a long-requested feature: prebuilds of the bindings. The process of building is done for every npm i, which is slow and inefficient. By using prebuildify and node-gyp-build, we can create prebuilds for the most popular platforms/distributions and speed up the process considerably.

Here is a simplified schema to show how it works :

image

How should this be manually tested?

  • Step 1 : Build the package via npm build and pack it with NPM.
  • Step 2 : Refer to it in a dependent package.
  • Step 3 : Launch any desired program using it.
  • Step 4 : Check boost-geospatial-index in the node_modules folder. No build folder should be present. If present, it means node-gyp-build was not able to find a compatible prebuild.

Other changes

Adapted the package.json to only pack necessary files.

@inkedsquid inkedsquid self-assigned this Sep 16, 2025
@inkedsquid inkedsquid marked this pull request as ready for review September 16, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant