Skip to content

Commit

Permalink
feat: support mirror prebuild-install package (#250)
Browse files Browse the repository at this point in the history
e.g.: utf-8-validate

cnpm/mirrors#162
  • Loading branch information
fengmk2 committed Oct 24, 2017
1 parent 0d3a74f commit aeaf2fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/download/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ function* download(pkg, options) {
if (/prebuild --install/.test(pkg.scripts.install) ||
/prebuild --download/.test(pkg.scripts.install) ||
/node-pre-gyp install/.test(pkg.scripts.install) ||
// utf-8-validate
/prebuild-install || node-gyp rebuild/.test(pkg.scripts.install) ||
pkg.name === 'nodegit' ||
pkg.name === 'fsevents') {
const newBinary = pkg.binary || {};
Expand Down

0 comments on commit aeaf2fb

Please sign in to comment.