Commit ef7d11ef by Michael Mifsud

Merge pull request #1063 from saper/requirepangyp

Locate pangyp via module API
parents 81c5446b 546e11ee
......@@ -128,7 +128,7 @@ function build(options) {
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) {
return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join('');
})).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