mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 260 forks source link

Allow forcing local build with environment variables #703

Open wmertens opened 9 months ago

wmertens commented 9 months ago

I'm using pnpm in my project and sqlite3 is a dep-of-dep. I want it to use a give sqlite3 binary and it seems that the only way to do that is to go into the module after install and manually run npx node-pre-gyp install --build-from-source

It would be great if there was a way to force build during install e.g. NODE_PRE_GYP_BUILD=sqlite3,bcrypt.