Skip to content

Commit

Permalink
lib: add .json suffix for explicit require
Browse files Browse the repository at this point in the history
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: #1787
Reviewed-By: Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
rvagg committed Jun 21, 2019
1 parent ec2eb44 commit 611bc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-gyp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 611bc3c

Please sign in to comment.