mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Ignore global libvips during install via SHARP_IGNORE_GLOBAL_LIBVIPS (#1165)
This commit is contained in:
committed by
Lovell Fuller
parent
8dac256096
commit
0d7c3fc4d8
@@ -46,6 +46,10 @@ const pkgConfigPath = function () {
|
||||
};
|
||||
|
||||
const useGlobalLibvips = function () {
|
||||
if (Boolean(process.env.SHARP_IGNORE_GLOBAL_LIBVIPS) === true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const globalVipsVersion = globalLibvipsVersion();
|
||||
return !!globalVipsVersion && semver.gte(globalVipsVersion, minimumLibvipsVersion);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user