Remove npmlog as a direct dependency

It remains a transitive dependency via prebuild-install
This commit is contained in:
Lovell Fuller
2021-02-27 20:23:25 +00:00
parent b05a4bdadd
commit 8dffa28b4d
5 changed files with 49 additions and 16 deletions

View File

@@ -37,6 +37,14 @@ const cachePath = function () {
return libvipsCachePath;
};
const log = function (item) {
if (item instanceof Error) {
console.error(`sharp: ${item.message}`);
} else {
console.log(`sharp: ${item}`);
}
};
const isRosetta = function () {
/* istanbul ignore next */
if (process.platform === 'darwin' && process.arch === 'x64') {
@@ -104,6 +112,7 @@ module.exports = {
minimumLibvipsVersion,
minimumLibvipsVersionLabelled,
cachePath,
log,
globalLibvipsVersion,
hasVendoredLibvips,
pkgConfigPath,