Closed LorenzGardner closed 9 years ago
What is nexe
? Can you link me up?
Nevermind, the repo is in your public activity :)
Can you verify that the change you are proposing will actually work with nexe
? I'm looking around in it and I'm not 100% sure that it understands fs
either...
Yes, it does understand fs.
I did the proposed change on my local HD and it works.
Great :)
I've modified nexe to support JSON require.
Neat :) Though I'm still going to move that into a .js
file for 2.6 since it'll be more maintainable since I can make the certificate multiple lines instead of one enormous line :)
https://github.com/felixge/node-mysql/blob/master/lib/ConnectionConfig.js#L127
Not all environments support json files with the require (specifically nexe).
The usage seems weird to me, I guess it has been in node for a while (since 2011) but I would like to change the line to
You may note this is indeed the implementation of require for JSON files: https://github.com/joyent/node/commit/588d885e81dec667920383ac7246daceeb7f99fd