Skip to content

Commit

Permalink
fix: replace in files when replaceHostRegExpMap is set (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Jul 27, 2020
1 parent 0107755 commit f87d6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async function download(pkg, options) {
options.console.info('%s download from binary mirror: %j',
chalk.gray(`${pkg.name}@${pkg.version}`), newBinary);
}
} else if ((binaryMirror.replaceHost && binaryMirror.host) || binaryMirror.replaceHostMap) {
} else if ((binaryMirror.replaceHost && binaryMirror.host) || binaryMirror.replaceHostMap || binaryMirror.replaceHostRegExpMap) {
// use mirror url instead
// e.g.: pngquant-bin
// https://github.com/lovell/sharp/blob/master/install/libvips.js#L19
Expand Down

0 comments on commit f87d6bd

Please sign in to comment.