Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N-API Support #87

Merged
merged 2 commits into from
Sep 27, 2018
Merged

N-API Support #87

merged 2 commits into from
Sep 27, 2018

Conversation

jschlight
Copy link
Contributor

This pull request implements changes to prebuild-install to support installing Node native modules based on N-API by adding a new napi runtime. The changes are described on the README.

This PR should be coordinated with its counterpart PR on prebuild.

@@ -46,7 +46,7 @@ function urlTemplate (opts) {
return hostMirrorUrl + '/v{version}/' + packageName
}

if (opts.pkg.binary) {
if (opts.pkg.binary && opts.pkg.binary.host) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this related to n-api?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Support for N-API requires a binary property that was not required before. For N-API, the binary property may be missing the host property.

@jschlight
Copy link
Contributor Author

I've completed all planned work on this PR. Are there further concerns that need to be addressed before it can be merged?

@ralphtheninja ralphtheninja merged commit d89140e into prebuild:master Sep 27, 2018
@ralphtheninja
Copy link
Member

5.2.0

@jschlight jschlight deleted the napi-support branch September 27, 2018 20:31
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.

3 participants