node-gyp-build
Advanced tools
Comparing version 1.0.0 to 1.0.1
12
bin.js
#!/usr/bin/env node | ||
var bindings = require('./') | ||
var proc = require('child_process') | ||
try { | ||
bindings() | ||
process.exit(0) // can already load a build | ||
} catch (err) { | ||
// do nothing | ||
} | ||
proc.exec('node-gyp-build-test', function (err) { | ||
if (err) preinstall(process.argv.slice(2).join(' ')) | ||
}) | ||
preinstall(process.argv.slice(2).join(' ')) | ||
function build () { | ||
@@ -16,0 +10,0 @@ proc.spawn('node-gyp', ['rebuild'], {stdio: 'inherit'}).on('exit', function (code) { |
{ | ||
"name": "node-gyp-build", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Build tool and bindings loader for node-gyp that supports prebuilds", | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
"node-gyp-build": "./bin.js", | ||
"node-gyp-build-optional": "./optional.js" | ||
"node-gyp-build-optional": "./optional.js", | ||
"node-gyp-build-test": "./build-test.js" | ||
}, | ||
@@ -17,0 +18,0 @@ "repository": { |
5348
8
75