Skip to content

feat: support loading node native addons from the prebuilds directory - #198

Merged
styfle merged 3 commits into
vercel:mainfrom
yjoer:patch-3
Jul 4, 2025
Merged

feat: support loading node native addons from the prebuilds directory#198
styfle merged 3 commits into
vercel:mainfrom
yjoer:patch-3

Conversation

@yjoer

@yjoer yjoer commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

Extracted from #194

This is taking advantage of #185, which used a function in node-gyp-build to compute the path. Some moons ago, node-gyp-build.js#L62-L75 was updated with a function to resolve native addons from the prebuilds directory. All we have to do here is update node-gyp-build.

This enables assets relocation for packages like bcrypt v6.0.0

I added some tests according to the platform used in CI. Hopefully, the architecture and the fixtures align well.

@yjoer
yjoer requested review from Timer and styfle as code owners July 3, 2025 16:16
@socket-security

socket-security Bot commented Jul 3, 2025

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednode-gyp-build@​4.2.1 ⏵ 4.8.49910086 +181100

View full report

@styfle styfle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! 👍

@styfle
styfle merged commit d15a3fa into vercel:main Jul 4, 2025
6 checks passed
@github-actions

github-actions Bot commented Jul 4, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants