node-gyp-build
Advanced tools
Comparing version 1.0.1 to 1.1.0
13
bin.js
#!/usr/bin/env node | ||
var proc = require('child_process') | ||
var os = require('os') | ||
var ARGS = process.argv.slice(2) | ||
var RUN_PREINSTALL = true | ||
if (os.platform() === 'win32' && ARGS[0] === '--no-windows-preinstall') { | ||
ARGS.shift() | ||
RUN_PREINSTALL = false | ||
} | ||
proc.exec('node-gyp-build-test', function (err) { | ||
if (err) preinstall(process.argv.slice(2).join(' ')) | ||
if (err) preinstall(ARGS.join(' ')) | ||
}) | ||
@@ -16,3 +25,3 @@ | ||
function preinstall (cmd) { | ||
if (!cmd) return build() | ||
if (!cmd || !RUN_PREINSTALL) return build() | ||
exec(cmd).on('exit', function (code) { | ||
@@ -19,0 +28,0 @@ if (code) process.exit(code) |
{ | ||
"name": "node-gyp-build", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Build tool and bindings loader for node-gyp that supports prebuilds", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5550
82