node-gyp-build
Advanced tools
Comparing version 2.0.1 to 2.0.2
11
bin.js
@@ -6,5 +6,2 @@ #!/usr/bin/env node | ||
var preinstall = process.argv[2] | ||
var postinstall = process.argv[3] | ||
proc.exec('node-gyp-build-test', function (err) { | ||
@@ -16,4 +13,4 @@ if (err) preinstall() | ||
proc.spawn(os.platform() === 'win32' ? 'node-gyp.cmd' : 'node-gyp', ['rebuild'], {stdio: 'inherit'}).on('exit', function (code) { | ||
if (code || !postinstall) process.exit(code) | ||
exec(postinstall).on('exit', function (code) { | ||
if (code || !process.argv[3]) process.exit(code) | ||
exec(process.argv[3]).on('exit', function (code) { | ||
process.exit(code) | ||
@@ -25,4 +22,4 @@ }) | ||
function preinstall () { | ||
if (!preinstall) return build() | ||
exec(preinstall).on('exit', function (code) { | ||
if (!process.argv[2]) return build() | ||
exec(process.argv[2]).on('exit', function (code) { | ||
if (code) process.exit(code) | ||
@@ -29,0 +26,0 @@ build() |
{ | ||
"name": "node-gyp-build", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Build tool and bindings loader for node-gyp that supports prebuilds", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5523
79