Skip to content

Commit ed3ff7e

Browse files
committed
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: #1787 Reviewed-By: Reviewed-By: Richard Lau <[email protected]>
1 parent af0d7b8 commit ed3ff7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-gyp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var proto = Gyp.prototype
5151
* Export the contents of the package.json.
5252
*/
5353

54-
proto.package = require('../package')
54+
proto.package = require('../package.json')
5555

5656
/**
5757
* nopt configuration definitions

0 commit comments

Comments
 (0)