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 <[email protected]>
  • Loading branch information
rvagg committed Jun 21, 2019
1 parent af0d7b8 commit ed3ff7e
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 ed3ff7e

Please sign in to comment.