prebuildify
Advanced tools
Comparing version 2.5.0 to 2.6.0
10
bin.js
@@ -26,2 +26,8 @@ #!/usr/bin/env node | ||
// Should be the default once napi is stable | ||
if (argv.napi) { | ||
targets = [abi.supportedTargets.filter(onlyNode).pop()] | ||
if (targets[0].target === '9.0.0') targets[0].target = '9.6.1' | ||
} | ||
argv.targets = targets | ||
@@ -36,1 +42,5 @@ argv.cwd = argv.cwd || argv._[0] || '.' | ||
}) | ||
function onlyNode (t) { | ||
return t.runtime === 'node' | ||
} |
@@ -63,3 +63,4 @@ var proc = require('child_process') | ||
var name = next.runtime + '-' + abi.getAbi(next.target, next.runtime) + '.node' | ||
var v = opts.napi ? 'napi' : abi.getAbi(next.target, next.runtime) | ||
var name = next.runtime + '-' + v + '.node' | ||
var dest = path.join(opts.builds, name) | ||
@@ -66,0 +67,0 @@ |
{ | ||
"name": "prebuildify", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Create and package prebuilds for native modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,2 +22,9 @@ # prebuildify | ||
If your module is using the new node core N-API, then you can prebuild using the `--napi` flag | ||
``` sh | ||
# prebuild for n-api | ||
prebuildify --napi | ||
``` | ||
Then only remaining thing you need to do now is make your module use a prebuild if one exists | ||
@@ -24,0 +31,0 @@ for the platform/runtime you are using. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9882
190
73