From 611bc3c89f70f247f66af04a3206044c6fd1721d 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. PR-URL: https://github.com/nodejs/node-gyp/pull/1787 Reviewed-By: Reviewed-By: Richard Lau --- 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