diff --git a/package.json b/package.json index 0aed9c2fd..30bea6261 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "coveralls": "^2.11.2", "jscoverage": "^0.5.9", "jshint": "^2.6.0", - "mocha-lcov-reporter": "^0.0.1", - "pangyp": "^2.1.0" + "mocha-lcov-reporter": "^0.0.1" } } diff --git a/scripts/build.js b/scripts/build.js index 7d74b4183..6863a0e52 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -3,7 +3,7 @@ var fs = require('fs'), spawn = require('child_process').spawn, mkdir = require('mkdirp'), Mocha = require('mocha'); - + require('../lib/extensions'); /** @@ -50,11 +50,8 @@ function afterBuild(options) { */ function build(options) { - var arguments = ['node_modules/pangyp/bin/node-gyp', 'rebuild'].concat(options.args); - - console.log(['Building:', process.runtime.execPath].concat(arguments).join(' ')); - - var proc = spawn(process.runtime.execPath, arguments, { + var bin = options.platform === 'win32' ? 'node-gyp.cmd' : 'node-gyp'; + var proc = spawn(bin, ['rebuild'].concat(options.args), { stdio: [0, 1, 2] });