Skip to content

Commit

Permalink
Merge 5a11395 into 9cc9b31
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalphettes committed Feb 27, 2015
2 parents 9cc9b31 + 5a11395 commit e1a1ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
9 changes: 3 additions & 6 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var fs = require('fs'),
spawn = require('child_process').spawn,
mkdir = require('mkdirp'),
Mocha = require('mocha');

require('../lib/extensions');

/**
Expand Down Expand Up @@ -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]
});

Expand Down

0 comments on commit e1a1ecf

Please sign in to comment.