Ensure 'versions' is populated from vendored libvips

This commit is contained in:
Lovell Fuller 2021-09-07 11:21:00 +01:00
parent 50c7a08754
commit 481e350f39
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,10 @@
Requires libvips v8.11.3 Requires libvips v8.11.3
### v0.29.2 - TBD
* Ensure `sharp.versions` is populated from vendored libvips.
### v0.29.1 - 7th September 2021 ### v0.29.1 - 7th September 2021
* Add `lightness` option to `modulate` operation. * Add `lightness` option to `modulate` operation.

View File

@ -4,6 +4,7 @@ const events = require('events');
const detectLibc = require('detect-libc'); const detectLibc = require('detect-libc');
const is = require('./is'); const is = require('./is');
const platformAndArch = require('./platform')();
const sharp = require('./sharp'); const sharp = require('./sharp');
/** /**
@ -45,7 +46,7 @@ let versions = {
vips: sharp.libvipsVersion() vips: sharp.libvipsVersion()
}; };
try { try {
versions = require(`../vendor/${versions.vips}/versions.json`); versions = require(`../vendor/${versions.vips}/${platformAndArch}/versions.json`);
} catch (err) {} } catch (err) {}
/** /**