Commit 546e11ee by Marcin Cieslak

Locate pangyp via module API

parent 81c5446b
...@@ -128,7 +128,7 @@ function build(options) { ...@@ -128,7 +128,7 @@ function build(options) {
process.exit(1); process.exit(1);
} }
var args = [path.join('node_modules', 'pangyp', 'bin', 'node-gyp'), 'rebuild'].concat( var args = [require.resolve(path.join('pangyp', 'bin', 'node-gyp.js')), 'rebuild'].concat(
['libsass_ext', 'libsass_cflags', 'libsass_ldflags', 'libsass_library'].map(function(subject) { ['libsass_ext', 'libsass_cflags', 'libsass_ldflags', 'libsass_library'].map(function(subject) {
return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join(''); return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join('');
})).concat(options.args); })).concat(options.args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment