From fd05a0b120f46711c6712b6003921493cffaf0f5 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Thu, 20 Jun 2019 17:08:53 +1000 Subject: [PATCH] lib: add .json suffix for explicit require Multiple reports of this failing, seems to be due to node wrapping tools that mess with the require extensions. So let's be explicit about it. --- lib/node-gyp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-gyp.js b/lib/node-gyp.js index 8dd551bf3d..21ed80f9ff 100644 --- a/lib/node-gyp.js +++ b/lib/node-gyp.js @@ -51,7 +51,7 @@ var proto = Gyp.prototype * Export the contents of the package.json. */ -proto.package = require('../package') +proto.package = require('../package.json') /** * nopt configuration definitions