diff --git a/package.json b/package.json index a4ab43c..65cebc6 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "napi" ], "dependencies": { - "detect-libc": "^1.0.3", + "detect-libc": "^2.0.0", "expand-template": "^2.0.3", "github-from-package": "0.0.0", "minimist": "^1.2.3", diff --git a/rc.js b/rc.js index a2dc300..16d5bb4 100644 --- a/rc.js +++ b/rc.js @@ -5,7 +5,7 @@ const detectLibc = require('detect-libc') const napi = require('napi-build-utils') const env = process.env -const libc = env.LIBC || (detectLibc.isNonGlibcLinux && detectLibc.family) || '' +const libc = env.LIBC || (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || '' // Get the configuration module.exports = function (pkg) {