Skip to content

Commit 9e7b751

Browse files
committed
Bring back GYP clean and condense build
1 parent 6f15ebd commit 9e7b751

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

install.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,13 @@ var dependencies = Q.allSettled([
120120
});
121121
})
122122

123-
// Configure the native module using node-gyp.
124-
.then(function() {
125-
console.info('[nodegit] Configuring native node module.');
126-
127-
return Q.nfcall(exec, systemPath([
128-
'.', 'node_modules', '.bin', 'node-gyp configure --python ' + python
129-
]), {
130-
cwd: '.'
131-
});
132-
})
133-
134123
// Build the native module using node-gyp.
135124
.then(function() {
136125
console.info('[nodegit] Building native node module.');
126+
var pythonFlag = ' --python ' + python;
137127

138128
return Q.nfcall(exec, systemPath([
139-
'.', 'node_modules', '.bin', 'node-gyp build'
129+
'.', 'node_modules', '.bin', 'node-gyp clean configure build' + pythonFlag
140130
]), {
141131
cwd: '.',
142132
maxBuffer: Number.MAX_VALUE

0 commit comments

Comments
 (0)